details: /erp/stable/2.50/rev/304cc32f9c5d
changeset: 9226:304cc32f9c5d
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Tue Feb 22 12:10:08 2011 +0100
summary: related to issue 15864: fixed message for update audit trail
diffstat:
src/org/openbravo/erpCommon/ad_process/UpdateAuditTrail.java | 19 ++++++++++-
1 files changed, 16 insertions(+), 3 deletions(-)
diffs (48 lines):
diff -r d8ed25331b2a -r 304cc32f9c5d
src/org/openbravo/erpCommon/ad_process/UpdateAuditTrail.java
--- a/src/org/openbravo/erpCommon/ad_process/UpdateAuditTrail.java Mon Feb
21 18:54:10 2011 +0100
+++ b/src/org/openbravo/erpCommon/ad_process/UpdateAuditTrail.java Tue Feb
22 12:10:08 2011 +0100
@@ -11,7 +11,7 @@
* under the License.
* The Original Code is Openbravo ERP.
* The Initial Developer of the Original Code is Openbravo SLU
- * All portions are Copyright (C) 2010 Openbravo SLU
+ * All portions are Copyright (C) 2010-2011 Openbravo SLU
* All Rights Reserved.
* Contributor(s): ______________________________________.
************************************************************************
@@ -20,9 +20,11 @@
package org.openbravo.erpCommon.ad_process;
import org.apache.log4j.Logger;
+import org.openbravo.base.secureApp.VariablesSecureApp;
import org.openbravo.dal.service.OBDal;
import org.openbravo.erpCommon.obps.ActivationKey;
import org.openbravo.erpCommon.utility.OBError;
+import org.openbravo.erpCommon.utility.Utility;
import org.openbravo.model.ad.process.ProcessInstance;
import org.openbravo.scheduling.OBScheduler;
import org.openbravo.scheduling.Process;
@@ -39,10 +41,21 @@
// Check whether it is a OBPS instance
if (!ActivationKey.isActiveInstance()) {
+ String msgTxt = "@FEATURE_OBPS_ONLY@<br/><a
class=\"MessageBox_TextLink\"
href=\"http://www.openbravo.com/product/erp/get-basic\"
target=\"_blank\">@LEARN_HOW@</a> @ACTIVATE_INSTANCE@";
+
+ msgTxt = Utility.parseTranslation(
+ bundle.getConnection(),
+ new VariablesSecureApp(bundle.getContext().getUser(),
bundle.getContext().getClient(),
+ bundle.getContext().getOrganization()),
bundle.getContext().getLanguage(), msgTxt)
+ .replace(
+ "@ProfessionalEditionType@",
+ Utility.messageBD(bundle.getConnection(), "OBPSAnyEdition",
bundle.getContext()
+ .getLanguage()));
+
msg.setType("Info");
msg.setTitle("");
- msg
- .setMessage("@FEATURE_OBPS_ONLY@<br/><a
class=\"MessageBox_TextLink\"
href=\"http://www.openbravo.com/product/erp/module/acquire\"
target=\"_blank\">@LEARN_HOW@</a> @ACTIVATE_INSTANCE@");
+
+ msg.setMessage(msgTxt);
bundle.setResult(msg);
return;
}
------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits