Comment 4 for bug 1843940

Revision history for this message
Michele Morgan (mmorgan) wrote :

I've pushed a working branch to:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mmorgan/lp1843940_permission_tree_display_sort_order

user/mmorgan/lp1843940_permission_tree_display_sort_order

This patch imposes a descending sort by position on the pgtde pcrud call which respects the permission.grp_tree_display_entry.position field order as stored in the database by the admin interface. This fix addresses sorting of the custom group tree in both the current patron editor as well as the Angular patron editor.

To test on a Concerto system, Create some additional permission groups as children of the Patrons group. Examples:

Public Patron
Homebound
Staff
Online
ILL Card

In Administration - Local Administration - Permission Tree Display Entries, create custom trees for CONS, and other org units.

Add and remove Root entries, add and remove children of root entries, change positions of children of root entries and save changes.

Note that the Main (Profile) Permission Group dropdown in both the current and Experimental patron registration screens matches the custom tree set for the workstation org unit in the admin interface.

Note that the CONS configuration will apply to child org units that do not have a custom tree configured.