Related to Issue 0024092 : Set title and message separately.
authorShankar Balachandran <shankar.balachandran@openbravo.com>
Wed, 03 Jul 2013 17:29:21 +0530
changeset 20712 8e9765fdae56
parent 20711 0b9c6c0013da
child 20713 6b684b7d61d6
Related to Issue 0024092 : Set title and message separately.

The success message after Initial Client Setup was successfully contained Process Completed Successfully and the reload context message in the same message.
Now set Process Completed Successfully as Title and reload context info as message.
Updated copyright information.
modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoWidgetActionHandler.java
src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoWidgetActionHandler.java	Tue Jul 02 18:13:56 2013 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/UserInfoWidgetActionHandler.java	Wed Jul 03 17:29:21 2013 +0530
@@ -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) 2009-2012 Openbravo SLU 
+ * All portions are Copyright (C) 2009-2013 Openbravo SLU 
  * All Rights Reserved. 
  * Contributor(s):  ______________________________________.
  ************************************************************************
--- a/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java	Tue Jul 02 18:13:56 2013 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.java	Wed Jul 03 17:29:21 2013 +0530
@@ -11,7 +11,7 @@
  * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
  * created by ComPiere are Copyright (C) ComPiere, Inc.;   All Rights Reserved.
  * Contributor(s): Openbravo SLU
- * Contributions are Copyright (C) 2001-2010 Openbravo S.L.U.
+ * Contributions are Copyright (C) 2001-2013 Openbravo S.L.U.
  ******************************************************************************
  */
 package org.openbravo.erpCommon.ad_forms;
@@ -147,9 +147,10 @@
     // In case the client creation is successful, the context has to be reloaded to use the created
     // client in user profile widget. Refer https://issues.openbravo.com/view.php?id=24092
     if (obeResult.getType().equalsIgnoreCase("success")) {
+      xmlDocument.setParameter("messageTitle",
+          Utility.parseTranslation(this, vars, strLanguage, obeResult.getMessage()));
       xmlDocument.setParameter("messageMessage",
-          Utility.parseTranslation(this, vars, strLanguage, obeResult.getMessage()) + "<br> "
-              + Utility.parseTranslation(this, vars, strLanguage, "@ReloadClientContext@")
+          Utility.parseTranslation(this, vars, strLanguage, "@ReloadClientContext@")
               + " <a href='#' onclick='window.parent.parent.location.reload();'> Reload </a>");
     } else {
       xmlDocument.setParameter("messageMessage",