details:   https://code.openbravo.com/erp/devel/pi/rev/d4779c9720b6
changeset: 32480:d4779c9720b6
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Thu Jul 20 08:40:10 2017 +0200
summary:   related to issue 36504: removed uiMode from community branding 
request

  There is no need to send fixed uiMode if butler correctly defaults to 3.0.

diffstat:

 
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/ApplicationComponent.java
 |  5 +----
 src/org/openbravo/erpCommon/utility/Utility.java                               
               |  6 +-----
 2 files changed, 2 insertions(+), 9 deletions(-)

diffs (46 lines):

diff -r 89e9cb7c60dc -r d4779c9720b6 
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/ApplicationComponent.java
--- 
a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/ApplicationComponent.java
     Wed Jul 19 11:38:14 2017 +0200
+++ 
b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/ApplicationComponent.java
     Thu Jul 20 08:40:10 2017 +0200
@@ -42,9 +42,6 @@
  * @author mtaal
  */
 public class ApplicationComponent extends BaseTemplateComponent {
-
-  private static final String MYOB_UIMODE = "MyOB";
-
   private FormatDefinition formatDefinition = null;
 
   private FormatDefinition getFormatDefinition() {
@@ -136,7 +133,7 @@
   }
 
   public String getCommunityBrandingUrl() {
-    return Utility.getCommunityBrandingUrl(MYOB_UIMODE);
+    return Utility.getCommunityBrandingUrl();
   }
 
   public String getCommunityBrandingStaticUrl() {
diff -r 89e9cb7c60dc -r d4779c9720b6 
src/org/openbravo/erpCommon/utility/Utility.java
--- a/src/org/openbravo/erpCommon/utility/Utility.java  Wed Jul 19 11:38:14 
2017 +0200
+++ b/src/org/openbravo/erpCommon/utility/Utility.java  Thu Jul 20 08:40:10 
2017 +0200
@@ -123,11 +123,8 @@
    * Computes the community branding url on the basis of system information. 
Note the returned url
    * does not contain the protocol part, it starts with //... So the caller 
has to prepend it with
    * the needed protocol part (i.e. http: or https:).
-   * 
-   * @param uiMode
-   *          valid values are: 2.50 or MyOB
    */
-  public static String getCommunityBrandingUrl(String uiMode) {
+  public static String getCommunityBrandingUrl() {
     String strLicenseClass = LicenseClass.COMMUNITY.getCode();
     OBContext.setAdminMode();
     try {
@@ -145,7 +142,6 @@
       url.append("?licenseClass=" + strLicenseClass);
       url.append("&trial=" + (ActivationKey.getInstance().isTrial() ? "Y" : 
"N"));
       url.append("&version=" + OBVersion.getInstance().getMajorVersion());
-      url.append("&uimode=" + uiMode);
       url.append("&language=" + 
OBContext.getOBContext().getLanguage().getLanguage());
       url.append("&systemIdentifier=" + SystemInfo.getSystemIdentifier());
       url.append("&macIdentifier=" + SystemInfo.getMacAddress());

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to