From 10fca86adfca48456f065c8553949a4521bacf18 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud <58596990+nmicoud@users.noreply.github.com> Date: Mon, 28 Mar 2022 23:20:49 +0200 Subject: [PATCH] IDEMPIERE-4771 - fix typo in message (#1269) --- migration/iD10/oracle/202203281643_IDEMPIERE-4771.sql | 10 ++++++++++ .../iD10/postgresql/202203281643_IDEMPIERE-4771.sql | 7 +++++++ .../src/main/server/org/compiere/server/Scheduler.java | 2 +- 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 migration/iD10/oracle/202203281643_IDEMPIERE-4771.sql create mode 100644 migration/iD10/postgresql/202203281643_IDEMPIERE-4771.sql diff --git a/migration/iD10/oracle/202203281643_IDEMPIERE-4771.sql b/migration/iD10/oracle/202203281643_IDEMPIERE-4771.sql new file mode 100644 index 0000000000..faaf07bca1 --- /dev/null +++ b/migration/iD10/oracle/202203281643_IDEMPIERE-4771.sql @@ -0,0 +1,10 @@ +-- IDEMPIERE-4771_fixMessage +SELECT register_migration_script('202203281643_IDEMPIERE-4771.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Mar 28, 2022, 4:43:24 PM CEST +UPDATE AD_Message SET Value='UploadSuccess',Updated=TO_TIMESTAMP('2022-03-28 16:43:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Message_ID=200679 +; + diff --git a/migration/iD10/postgresql/202203281643_IDEMPIERE-4771.sql b/migration/iD10/postgresql/202203281643_IDEMPIERE-4771.sql new file mode 100644 index 0000000000..926e4e6848 --- /dev/null +++ b/migration/iD10/postgresql/202203281643_IDEMPIERE-4771.sql @@ -0,0 +1,7 @@ +-- IDEMPIERE-4771_fixMessage +SELECT register_migration_script('202203281643_IDEMPIERE-4771.sql') FROM dual; + +-- Mar 28, 2022, 4:43:24 PM CEST +UPDATE AD_Message SET Value='UploadSuccess',Updated=TO_TIMESTAMP('2022-03-28 16:43:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Message_ID=200679 +; + diff --git a/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java b/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java index 4914646824..39d486e9d6 100644 --- a/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java +++ b/org.adempiere.server/src/main/server/org/compiere/server/Scheduler.java @@ -412,7 +412,7 @@ public class Scheduler extends AdempiereServer UploadResponse response = handlers[0].uploadMedia(new UploadMedia(fileName, contentType, new FileInputStream(file), file.length()), account); if (response.getLink() != null) { - MSchedulerLog pLog = new MSchedulerLog(get(getCtx(), AD_Scheduler_ID), Msg.getMsg(Env.getCtx(), "UploadSucess")); + MSchedulerLog pLog = new MSchedulerLog(get(getCtx(), AD_Scheduler_ID), Msg.getMsg(Env.getCtx(), "UploadSuccess")); pLog.setTextMsg("User: " + upload.getAD_User().getName() + " Account: " + account.getEMail() + " Link: " + response.getLink()); pLog.setIsError(false);