IDEMPIERE-5396 Replace CreateFrom form with Info Window Process (#1514)
- Fix Default AD_InfoWindow_ID value of AD_Column
This commit is contained in:
parent
bc9f0433a2
commit
476e9ab71c
|
@ -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
|
||||
;
|
||||
|
|
@ -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
|
||||
;
|
||||
|
|
@ -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;
|
||||
} // beforeSave
|
||||
|
||||
|
|
Loading…
Reference in New Issue