diff --git a/migration/i6.2/oracle/201902271329_IDEMPIERE-3903.sql b/migration/i6.2/oracle/201902271329_IDEMPIERE-3903.sql new file mode 100644 index 0000000000..559e5a8328 --- /dev/null +++ b/migration/i6.2/oracle/201902271329_IDEMPIERE-3903.sql @@ -0,0 +1,19 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-3903 Notification Type tries to default to Email +-- Feb 27, 2019, 1:26:46 PM CET +UPDATE AD_Column SET DefaultValue='X',Updated=TO_DATE('2019-02-27 13:26:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13773 +; + +-- Feb 27, 2019, 1:26:48 PM CET +ALTER TABLE AD_User MODIFY NotificationType CHAR(1) DEFAULT 'X' +; + +-- Feb 27, 2019, 1:26:48 PM CET +UPDATE AD_User SET NotificationType='X' WHERE NotificationType IS NULL +; + +SELECT register_migration_script('201902271329_IDEMPIERE-3903.sql') FROM dual +; + diff --git a/migration/i6.2/postgresql/201902271329_IDEMPIERE-3903.sql b/migration/i6.2/postgresql/201902271329_IDEMPIERE-3903.sql new file mode 100644 index 0000000000..377cb28322 --- /dev/null +++ b/migration/i6.2/postgresql/201902271329_IDEMPIERE-3903.sql @@ -0,0 +1,16 @@ +-- IDEMPIERE-3903 Notification Type tries to default to Email +-- Feb 27, 2019, 1:26:46 PM CET +UPDATE AD_Column SET DefaultValue='X',Updated=TO_TIMESTAMP('2019-02-27 13:26:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=13773 +; + +-- Feb 27, 2019, 1:26:48 PM CET +INSERT INTO t_alter_column values('ad_user','NotificationType','CHAR(1)',null,'X') +; + +-- Feb 27, 2019, 1:26:48 PM CET +UPDATE AD_User SET NotificationType='X' WHERE NotificationType IS NULL +; + +SELECT register_migration_script('201902271329_IDEMPIERE-3903.sql') FROM dual +; + diff --git a/org.adempiere.base/src/org/compiere/model/MUser.java b/org.adempiere.base/src/org/compiere/model/MUser.java index 21555e5d8e..cf85f3b2bd 100644 --- a/org.adempiere.base/src/org/compiere/model/MUser.java +++ b/org.adempiere.base/src/org/compiere/model/MUser.java @@ -277,7 +277,7 @@ public class MUser extends X_AD_User if (AD_User_ID == 0) { setIsFullBPAccess (true); - setNotificationType(NOTIFICATIONTYPE_EMail); + setNotificationType(NOTIFICATIONTYPE_None); } } // MUser