LP1851831 Group perm editor null descriptions OK user/berick/lp1851831-perm-grp-null-desc
authorBill Erickson <berickxx@gmail.com>
Fri, 8 Nov 2019 15:37:21 +0000 (10:37 -0500)
committerBill Erickson <berickxx@gmail.com>
Fri, 8 Nov 2019 15:43:00 +0000 (10:43 -0500)
commit5e15c9bf2633c8f3911eb3e0d762b0fb9fd1f228
tree27f1ad5c0113df7bdc6b105fadfb73d48169cb75
parente0d52892b1aa320c7b4ff2c276b334dce59cc86c
LP1851831 Group perm editor null descriptions OK

Avoid assuming a permission description value is non-NULL in the
permission group editor interfaces since values are not required in the
database.

Fixes: ERROR TypeError: "l.description(...) is null"

Similarly repair the permission list title attributes so they display
the permission code (instead of an empty string) for titles when no
description is available.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-map-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts