From 7a488b2a0d768fcc6b9c663bc9c9254333569778 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 18 Sep 2017 12:45:02 +0800 Subject: [PATCH] 1008477 List on Position field in Lead window is blank even if there are position options configured. (IDEMPIERE-1721) --- migration/i5.1/oracle/201709181100_Ticket_1008477.sql | 11 +++++++++++ .../i5.1/postgresql/201709181100_Ticket_1008477.sql | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 migration/i5.1/oracle/201709181100_Ticket_1008477.sql create mode 100644 migration/i5.1/postgresql/201709181100_Ticket_1008477.sql diff --git a/migration/i5.1/oracle/201709181100_Ticket_1008477.sql b/migration/i5.1/oracle/201709181100_Ticket_1008477.sql new file mode 100644 index 0000000000..999c740297 --- /dev/null +++ b/migration/i5.1/oracle/201709181100_Ticket_1008477.sql @@ -0,0 +1,11 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Sep 18, 2017 12:37:19 PM GMT+08:00 +-- 1008477 List on Position field in Lead window is blank even if there are position options configured. +UPDATE AD_Val_Rule SET Code='((C_Job.IsEmployee=(SELECT IsEmployee FROM C_BPartner WHERE C_BPartner_ID=@C_BPartner_ID:0@)) OR (C_Job.IsEmployee=''N'' AND @C_BPartner_ID:0@=0))',Updated=TO_DATE('2017-09-18 12:37:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=243 +; + +SELECT register_migration_script('201709181100_Ticket_1008477.sql') FROM dual +; + diff --git a/migration/i5.1/postgresql/201709181100_Ticket_1008477.sql b/migration/i5.1/postgresql/201709181100_Ticket_1008477.sql new file mode 100644 index 0000000000..f015d8518c --- /dev/null +++ b/migration/i5.1/postgresql/201709181100_Ticket_1008477.sql @@ -0,0 +1,8 @@ +-- Sep 18, 2017 12:37:19 PM GMT+08:00 +-- 1008477 List on Position field in Lead window is blank even if there are position options configured. +UPDATE AD_Val_Rule SET Code='((C_Job.IsEmployee=(SELECT IsEmployee FROM C_BPartner WHERE C_BPartner_ID=@C_BPartner_ID:0@)) OR (C_Job.IsEmployee=''N'' AND @C_BPartner_ID:0@=0))',Updated=TO_TIMESTAMP('2017-09-18 12:37:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=243 +; + +SELECT register_migration_script('201709181100_Ticket_1008477.sql') FROM dual +; +