]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1959904: Fix Angular Profile Select Component
authorJason Stephenson <jason@sigio.com>
Fri, 11 Feb 2022 14:44:55 +0000 (09:44 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 7 Apr 2022 15:12:37 +0000 (11:12 -0400)
commitc94ddae8c17e722301629c8a0783952d757d6f0e
tree374c3f3fa08b2be30b8ed566db0edaca2bef73ae
parent37a55388652db249448593281f3d6a8cc5b7ff03
LP1959904: Fix Angular Profile Select Component

The Angular profile select component has a bug when permission group
tree display entries are used.  It will loop forever if the grp and
parent have the same value in permission.grp_tree_display_entry
because it is comparing permission group tree entries to permission
group tree display entries in the groups filter of the grpLabel
function.

This patch adds a ternary operator to compare display entries to
display entries and group tree entries to group tree entries in a
manner identical to how the parent value is determined a few lines
above.

See the bug description for more information:

    https://bugs.launchpad.net/evergreen/+bug/1959904

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: John Amundson <jamundson@cwmars.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/eg2/src/app/staff/share/patron/profile-select.component.ts