INSERT INTO config.global_flag (name, enabled, label)
VALUES (
- 'opac.org_unit.non_inheritied_visibility',
+ 'opac.org_unit.non_inherited_visibility',
FALSE,
oils_i18n_gettext(
- 'opac.org_unit.non_inheritied_visibility',
+ 'opac.org_unit.non_inherited_visibility',
'Org Units Do Not Inherit Visibility',
'cgf',
'label'
--- /dev/null
+-- Evergreen DB patch XXXX.data.fix_inheritied_typo.sql
+--
+-- Fixes a typo in the name of a global flag
+
+UPDATE config.global_flag
+SET name = 'opac.org_unit.non_inherited_visibility'
+WHERE name = 'opac.org_unit.non_inheritied_visibility';
INSERT INTO config.global_flag (name, enabled, label)
VALUES (
- 'opac.org_unit.non_inheritied_visibility',
+ 'opac.org_unit.non_inherited_visibility',
FALSE,
oils_i18n_gettext(
- 'opac.org_unit.non_inheritied_visibility',
+ 'opac.org_unit.non_inherited_visibility',
'Org Units Do Not Inherit Visibility',
'cgf',
'label'
BLOCK build_org_selector;
node_stack = [{org => org_unit || ctx.aouct_tree || ctx.aou_tree}];
- inherited_vis = ctx.get_cgf('opac.org_unit.non_inheritied_visibility').enabled == 'f';
+ inherited_vis = ctx.get_cgf('opac.org_unit.non_inherited_visibility').enabled == 'f';
IF !name;
name = 'loc';