From 355ef166f13088c641f0882eeede95aab1863d9a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 12 Apr 2021 13:28:20 +0200 Subject: [PATCH] IDEMPIERE-4748 Window, Tab & Field: Fields that are not displayed in the frontend window are hidden also in the backend. (#650) --- migration/i8.2/oracle/202104121227_IDEMPIERE-4748.sql | 11 +++++++++++ .../i8.2/postgresql/202104121227_IDEMPIERE-4748.sql | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 migration/i8.2/oracle/202104121227_IDEMPIERE-4748.sql create mode 100644 migration/i8.2/postgresql/202104121227_IDEMPIERE-4748.sql diff --git a/migration/i8.2/oracle/202104121227_IDEMPIERE-4748.sql b/migration/i8.2/oracle/202104121227_IDEMPIERE-4748.sql new file mode 100644 index 0000000000..2f3ec7baa2 --- /dev/null +++ b/migration/i8.2/oracle/202104121227_IDEMPIERE-4748.sql @@ -0,0 +1,11 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-4748 Window, Tab & Field: Fields that are not displayed in the frontend window are hidden also in the backend. +-- Apr 12, 2021, 12:25:49 PM CEST +UPDATE AD_Tab SET WhereClause=NULL, OrderByClause='CASE WHEN AD_Field.IsActive=''Y'' AND (AD_Field.IsDisplayed=''Y'' OR AD_Field.IsDisplayedGrid=''Y'') THEN 0 ELSE 1 END, AD_Field.SeqNo, AD_Field.SeqNoGrid, AD_Field.AD_Field_ID',Updated=TO_DATE('2021-04-12 12:25:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=107 +; + +SELECT register_migration_script('202104121227_IDEMPIERE-4748.sql') FROM dual +; + diff --git a/migration/i8.2/postgresql/202104121227_IDEMPIERE-4748.sql b/migration/i8.2/postgresql/202104121227_IDEMPIERE-4748.sql new file mode 100644 index 0000000000..d6315cda90 --- /dev/null +++ b/migration/i8.2/postgresql/202104121227_IDEMPIERE-4748.sql @@ -0,0 +1,8 @@ +-- IDEMPIERE-4748 Window, Tab & Field: Fields that are not displayed in the frontend window are hidden also in the backend. +-- Apr 12, 2021, 12:25:49 PM CEST +UPDATE AD_Tab SET WhereClause=NULL, OrderByClause='CASE WHEN AD_Field.IsActive=''Y'' AND (AD_Field.IsDisplayed=''Y'' OR AD_Field.IsDisplayedGrid=''Y'') THEN 0 ELSE 1 END, AD_Field.SeqNo, AD_Field.SeqNoGrid, AD_Field.AD_Field_ID',Updated=TO_TIMESTAMP('2021-04-12 12:25:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=107 +; + +SELECT register_migration_script('202104121227_IDEMPIERE-4748.sql') FROM dual +; +