From: Jason Etheridge Date: Thu, 1 Oct 2020 15:45:44 +0000 (-0400) Subject: lp1895738 need eg.orgselect.hopeless.wide_holds X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f4a8da5280a890b9a23da42405af6747431411bf;p=Evergreen.git lp1895738 need eg.orgselect.hopeless.wide_holds This fixes the following: ERROR Error: Uncaught (in promise): No user or workstation setting type exists for: "eg.orgselect.hopeless.wide_holds". Create a ws/user setting type or use setLocalItem() to store the value locally. However, it exposes a different (harmless?) error within the /eg2 holds grid: ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value for 'ng-untouched': 'true'. Current value: 'false'. Signed-off-by: Jason Etheridge Signed-off-by: Michele Morgan Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/sql/Pg/950.data.seed-values.sql b/Open-ILS/src/sql/Pg/950.data.seed-values.sql index 217d46bbba..678ed4122d 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -20934,6 +20934,13 @@ VALUES ( 'cwst', 'label' ) ), ( + 'eg.orgselect.hopeless.wide_holds', 'gui', 'integer', + oils_i18n_gettext( + 'eg.orgselect.hopeless.wide_holds', + 'Default org unit for hopeless holds interface', + 'cwst', 'label' + ) +), ( 'eg.grid.cat.authority.browse', 'gui', 'object', oils_i18n_gettext( 'eg.grid.cat.authority.browse', diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron-search-org-select.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron-search-org-select.sql new file mode 100644 index 0000000000..a954fb4c91 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.patron-search-org-select.sql @@ -0,0 +1,17 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.orgselect.hopeless.wide_holds', 'gui', 'integer', + oils_i18n_gettext( + 'eg.orgselect.hopeless.wide_holds', + 'Default org unit for hopeless holds interface', + 'cwst', 'label' + ) +); + +COMMIT; + +