POE Paste with lovely alien head...

No paste!

from "aabbee" at 64.57.241.14
org unit setting not showing up on the patron editor

format options below
i tried to create a ui.patron.edit.au.ident_type2.show org unit setting it to false to hide the ident_type2 field.
note: for `*.show = false` settings to work for hiding fields at all, you need the patch from this wishlist bug:
https://bugs.launchpad.net/evergreen/+bug/1815950 (fields should be hidden when the relevant ".show" org unit setting is false)

but my ui.patron.edit.au.ident_type2.show setting isn't making it to the patron editor.
looking at the contents of $scope.org_settings in the javascript console:
// this setting has a value and works as expected:
temp0['ui.patron.edit.au.ident_value2.show'] // => false
// this setting exists, but i don't have a value set for it:
temp0['ui.patron.edit.au.email.show'] // => null
// but my new setting is undefined. the key doesn't even exist in $scope.org_settings:
temp0['ui.patron.edit.au.ident_type2.show'] // => undefined


i didn't notice anything anomalous in the related database records:

my ui.patron.edit.au.*.show setting types:
evergreen=# select name, grp, datatype, fm_class, view_perm, update_perm from config.org_unit_setting_type where name like 'ui.patron.edit.au.%.show';
                         name                          | grp | datatype | fm_class | view_perm | update_perm 
-------------------------------------------------------+-----+----------+----------+-----------+-------------
 ui.patron.edit.au.active.show                         | gui | bool     |          |           |            
 ui.patron.edit.au.alert_message.show                  | gui | bool     |          |           |            
 ui.patron.edit.au.alias.show                          | gui | bool     |          |           |            
 ui.patron.edit.au.barred.show                         | gui | bool     |          |           |            
 ui.patron.edit.au.claims_never_checked_out_count.show | gui | bool     |          |           |            
 ui.patron.edit.au.claims_returned_count.show          | gui | bool     |          |           |            
 ui.patron.edit.au.day_phone.show                      | gui | bool     |          |           |            
 ui.patron.edit.au.dob.show                            | gui | bool     |          |           |            
 ui.patron.edit.au.email.show                          | gui | bool     |          |           |            
 ui.patron.edit.au.evening_phone.show                  | gui | bool     |          |           |            
 ui.patron.edit.au.ident_value.show                    | gui | bool     |          |           |            
 ui.patron.edit.au.ident_value2.show                   | gui | bool     |          |           |            
 ui.patron.edit.au.juvenile.show                       | gui | bool     |          |           |            
 ui.patron.edit.au.master_account.show                 | gui | bool     |          |           |            
 ui.patron.edit.au.other_phone.show                    | gui | bool     |          |           |            
 ui.patron.edit.au.prefix.show                         | gui | bool     |          |           |            
 ui.patron.edit.au.second_given_name.show              | gui | bool     |          |           |            
 ui.patron.edit.au.suffix.show                         | gui | bool     |          |           |            
 ui.patron.edit.au.guardian.show                       |     | bool     |          |           |            
 ui.patron.edit.au.ident_type2.show                    | gui | bool     |          |           |            
(20 rows)


my ui.patron.edit.au.* setting values:
evergreen=# select * from actor.org_unit_setting where name like 'ui.patron.edit.au.%';
 id | org_unit |                 name                  | value
----+----------+---------------------------------------+-------
 19 |        1 | ui.patron.edit.au.prefix.show         | false
 20 |        1 | ui.patron.edit.au.ident_type2.show    | false
 21 |        1 | ui.patron.edit.au.ident_value2.show   | false
 22 |        1 | ui.patron.edit.au.juvenile.show       | false
 23 |        1 | ui.patron.edit.au.master_account.show | false
(5 rows)







perl stuff: (might be helpful for others but not perfect)



Valid HTML 4.01!

Pastebot is powered by POE.