You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2017/10/30 22:06:33 UTC

svn commit: r1813833 - in /ofbiz/ofbiz-framework/trunk: applications/commonext/widget/ofbizsetup/ProfileScreens.xml themes/common/template/includes/SetDependentDropdownValuesJs.ftl

Author: jleroux
Date: Mon Oct 30 22:06:33 2017
New Revision: 1813833

URL: http://svn.apache.org/viewvc?rev=1813833&view=rev
Log:
Fixed: ofbizsetup cannot create first customer. problem with state/province 
dropdown
(OFBIZ-6054)

Load only seed and seed-initial
Go to url. https://localhost:8443/ofbizsetup/control/firstcustomer

When entering the postal address, the state/province dropdown is empty and 
remains empty regardless of selection of the country dropdown.

Thanks: Wai for report and Oleg Andreyev for patch

Modified:
    ofbiz/ofbiz-framework/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml
    ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetDependentDropdownValuesJs.ftl

Modified: ofbiz/ofbiz-framework/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml?rev=1813833&r1=1813832&r2=1813833&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/commonext/widget/ofbizsetup/ProfileScreens.xml Mon Oct 30 22:06:33 2017
@@ -51,8 +51,8 @@
                                     </condition>
                                     <actions>
                                         <!-- fields for SetDependentDropdownValuesJs.ftl -->
-                                        <set field="dependentForm" value="NewCustomer"/>
-                                        <set field="paramKey" value="countryGeoId"/>                                        
+                                        <set field="dependentForm" value="NewUser"/>
+                                        <set field="paramKey" value="countryGeoId"/>
                                         <set field="mainId" value="USER_COUNTRY"/>
                                         <set field="dependentId" value="USER_STATE"/>
                                         <set field="requestName" value="getAssociatedStateList"/>

Modified: ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetDependentDropdownValuesJs.ftl
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetDependentDropdownValuesJs.ftl?rev=1813833&r1=1813832&r2=1813833&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetDependentDropdownValuesJs.ftl (original)
+++ ofbiz/ofbiz-framework/trunk/themes/common/template/includes/SetDependentDropdownValuesJs.ftl Mon Oct 30 22:06:33 2017
@@ -19,7 +19,7 @@ under the License.
 <#assign requestName><@o...@ofbizUrl></#assign>
 <script type="text/javascript">
     jQuery(document).ready(function () {
-        if (jQuery('#${dependentForm}').length && jQuery('#${dependentForm}_${mainId}').length) {
+        if (jQuery('#${dependentForm}_${mainId}').length) {
             jQuery('#${dependentForm}_${mainId}').change(function (e, data) {
                 getDependentDropdownValues('${requestName}', '${paramKey}', '${dependentForm}_${mainId}', '${dependentForm}_${dependentId}', '${responseName}', '${dependentKeyName}', '${descName}');
             });