[instancePurpose] Set current instance purpose on popup when is changed from System Info window.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Fri, 22 Oct 2010 12:59:15 +0200
changeset 8745 7200bda39e46
parent 8744 eabc1684ecf7
child 8746 d977c7320a1d
[instancePurpose] Set current instance purpose on popup when is changed from System Info window.
src/org/openbravo/erpCommon/ad_forms/InstancePurpose.java
--- a/src/org/openbravo/erpCommon/ad_forms/InstancePurpose.java	Fri Oct 22 12:19:05 2010 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/InstancePurpose.java	Fri Oct 22 12:59:15 2010 +0200
@@ -90,6 +90,11 @@
       } else {
         strWelcomeMsg = "IP_CLONED_COMM_MSG";
       }
+    } else {
+      String purpose = OBDal.getInstance().get(SystemInformation.class, "0").getInstancePurpose();
+      if (purpose != null && !purpose.equals("")) {
+        xmlDocument.setParameter("selectedPurpose", purpose);
+      }
     }
     xmlDocument.setParameter("welcome", Utility.formatMessageBDToHtml(Utility.messageBD(this,
         strWelcomeMsg, vars.getLanguage())));