[open-ils-commits] [GIT] Evergreen ILS branch rel_3_4 updated. 8844d3265eb661c358c65b0eef57acc1ea7f3416
Evergreen Git
git at git.evergreen-ils.org
Fri Nov 8 14:40:42 EST 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_4 has been updated
via 8844d3265eb661c358c65b0eef57acc1ea7f3416 (commit)
from 2969e2f41c72c2369ae70cb7092fcac5188e968a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8844d3265eb661c358c65b0eef57acc1ea7f3416
Author: Bill Erickson <berickxx at gmail.com>
Date: Fri Nov 8 10:37:21 2019 -0500
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 at gmail.com>
Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-map-dialog.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-map-dialog.component.ts
index 2d472d70f7..c71f25f3b0 100644
--- a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-map-dialog.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-map-dialog.component.ts
@@ -64,7 +64,7 @@ export class PermGroupMapDialogComponent
const entries: ComboboxEntry[] = [];
this.trimmedPerms.forEach(p => {
if (p.code().toLowerCase().includes(term) ||
- p.description().toLowerCase().includes(term)) {
+ (p.description() || '').toLowerCase().includes(term)) {
entries.push({id: p.id(), label: p.code()});
}
});
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html
index 6e1770abe3..d906400232 100644
--- a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.html
@@ -148,7 +148,10 @@
<div class="row" *ngFor="let map of groupPermMaps()"
[ngClass]="{'bg-warning': map.isdeleted()}">
<div class="col-lg-5">
- <span title="{{map.perm().description()}}">{{map.perm().code()}}</span>
+ <span i18n-title
+ title="{{map.perm().description() || map.perm().code()}}">
+ {{map.perm().code()}}
+ </span>
</div>
<ng-container *ngIf="permIsInherited(map); else nativeMap">
<div class="col-lg-4">
diff --git a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts
index 242f93bebc..6d14b89c62 100644
--- a/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts
@@ -104,8 +104,10 @@ export class PermGroupTreeComponent implements OnInit {
const parts = this.filterText.toLowerCase().split(' ');
maps = maps.filter(m => {
- const target = m.perm().code().toLowerCase()
- + ' ' + m.perm().description().toLowerCase();
+ const desc = m.perm().description() || ''; // null-able
+
+ const target =
+ m.perm().code().toLowerCase() + ' ' + desc.toLowerCase();
for (let i = 0; i < parts.length; i++) {
const part = parts[i];
-----------------------------------------------------------------------
Summary of changes:
.../src/app/staff/admin/server/perm-group-map-dialog.component.ts | 2 +-
.../eg2/src/app/staff/admin/server/perm-group-tree.component.html | 5 ++++-
.../src/eg2/src/app/staff/admin/server/perm-group-tree.component.ts | 6 ++++--
3 files changed, 9 insertions(+), 4 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list