IDEMPIERE-5396 Replace CreateFrom form with Info Window Process (#1514)

- Fix Default AD_InfoWindow_ID value of AD_Column
This commit is contained in:
hengsin 2022-10-05 17:00:42 +08:00 committed by GitHub
parent bc9f0433a2
commit 476e9ab71c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,13 @@
-- IDEMPIERE-5396 Replace CreateFrom form with Info Window Process
SELECT register_migration_script('202210051347_IDEMPIERE-5396.sql') FROM dual;
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Oct 5, 2022, 1:47:28 PM MYT
UPDATE AD_Column SET DefaultValue='NULL',Updated=TO_TIMESTAMP('2022-10-05 13:47:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215126
;
UPDATE AD_Column SET AD_InfoWindow_ID=NULL WHERE AD_InfoWindow_ID IS NOT NULL AND AD_Reference_ID != 28
;

View File

@ -0,0 +1,10 @@
-- IDEMPIERE-5396 Replace CreateFrom form with Info Window Process
SELECT register_migration_script('202210051347_IDEMPIERE-5396.sql') FROM dual;
-- Oct 5, 2022, 1:47:28 PM MYT
UPDATE AD_Column SET DefaultValue='NULL',Updated=TO_TIMESTAMP('2022-10-05 13:47:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=215126
;
UPDATE AD_Column SET AD_InfoWindow_ID=NULL WHERE AD_InfoWindow_ID IS NOT NULL AND AD_Reference_ID != 28
;

View File

@ -539,6 +539,10 @@ public class MColumn extends X_AD_Column implements ImmutablePOSupport
} }
} }
if (getAD_Reference_ID() != DisplayType.Button && get_Value(COLUMNNAME_AD_InfoWindow_ID) != null) {
set_Value(COLUMNNAME_AD_InfoWindow_ID, null);
}
return true; return true;
} // beforeSave } // beforeSave