From dabe1b66f6e95ed7a9159cd75ae62c729e15e1fb Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Tue, 9 Jun 2020 13:51:24 -0700 Subject: [PATCH] LP1882825: Add setting for booking pull list grid Steps to test: [1] Go to the Booking Pull List. [2] Change the grid around and try to save. [3] Note in your browser console an error message: "Error saving columns: No user or workstation setting type exists for eg.grid.booking.pull_list" [4] Run the database migration included in this commit. [5] Repeat steps 1-2. [6] Note that no error message appears. [7] Try exiting Evergreen and coming back (using the same workstation). Note that your changes to the grid have stuck! Signed-off-by: Jane Sandberg Signed-off-by: Chris Sharp --- Open-ILS/src/sql/Pg/950.data.seed-values.sql | 8 +++++++- ...data.add_missing_setting_for_booking_pull_list_grid.sql | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_missing_setting_for_booking_pull_list_grid.sql 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 efab317842..90121b7512 100644 --- a/Open-ILS/src/sql/Pg/950.data.seed-values.sql +++ b/Open-ILS/src/sql/Pg/950.data.seed-values.sql @@ -20592,7 +20592,13 @@ VALUES ( 'Grid Config: Booking Captured Reservations', 'cwst', 'label') ), ( - 'eg.booking.manage.selected_org_family', 'gui', 'object', + 'eg.grid.booking.pull_list', 'gui', 'object', + oils_i18n_gettext( + 'booking.pull_list', + 'Grid Config: Booking Pull List', + 'cwst', 'label') +),( + 'eg.booking.manage.selected_org_family', 'gui', 'object', oils_i18n_gettext( 'booking.manage.selected_org_family', 'Sticky setting for pickup ou family in Manage Reservations screen', diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_missing_setting_for_booking_pull_list_grid.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_missing_setting_for_booking_pull_list_grid.sql new file mode 100644 index 0000000000..d522cae9f0 --- /dev/null +++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.data.add_missing_setting_for_booking_pull_list_grid.sql @@ -0,0 +1,14 @@ +BEGIN; + +SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version); + +INSERT INTO config.workstation_setting_type (name, grp, datatype, label) +VALUES ( + 'eg.grid.booking.pull_list', 'gui', 'object', + oils_i18n_gettext( + 'booking.pull_list', + 'Grid Config: Booking Pull List', + 'cwst', 'label') +); + +COMMIT; -- 2.11.0