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 2018/06/04 08:34:35 UTC

svn commit: r1832800 - in /ofbiz/ofbiz-plugins/trunk/ecommerce: groovyScripts/catalog/AjaxBreadcrumbs.groovy widget/CommonScreens.xml

Author: jleroux
Date: Mon Jun  4 08:34:35 2018
New Revision: 1832800

URL: http://svn.apache.org/viewvc?rev=1832800&view=rev
Log:
Fixed: Click on category the filter function doesn't work
(OFBIZ-10423)

Click on the left category, the page doesn't refresh, there are two issues.

productCategoryId not set in 
   ecommerce/groovyScripts/catalog/AjaxBreadcrumbs.groovy
updated data will fill in #div3, but the div id is missing in 
   ecommerce/widget/CommonScreens.xml
 
Thanks: Jason Hao

Modified:
    ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/catalog/AjaxBreadcrumbs.groovy
    ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/catalog/AjaxBreadcrumbs.groovy
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/catalog/AjaxBreadcrumbs.groovy?rev=1832800&r1=1832799&r2=1832800&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/catalog/AjaxBreadcrumbs.groovy (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/catalog/AjaxBreadcrumbs.groovy Mon Jun  4 08:34:35 2018
@@ -21,6 +21,7 @@ import org.apache.ofbiz.product.category
 import org.apache.ofbiz.base.util.UtilValidate
 
 parentCategoryStr = parameters.parentCategoryStr
+productCategoryId=parameters.category_id
 if(!UtilValidate.isEmpty(parentCategoryStr)) {
     pathList = parentCategoryStr.split('/')
     cateList = []

Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml?rev=1832800&r1=1832799&r2=1832800&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/widget/CommonScreens.xml Mon Jun  4 08:34:35 2018
@@ -86,13 +86,13 @@ under the License.
 
                      <container id="ecom-mainarea" style="row mx-2">
 
-                         <container style="col-lg-2 order-lg-1 order-2"><include-screen name="${leftbarScreenName}" location="${leftbarScreenLocation}"/></container>
-                         <container style="col-lg-8 order-lg-2 order-1">
+                         <container id="div1" style="col-lg-2 order-lg-1 order-2"><include-screen name="${leftbarScreenName}" location="${leftbarScreenLocation}"/></container>
+                         <container id="div3" style="col-lg-8 order-lg-2 order-1">
                              <!-- render messages -->
                              <platform-specific><html><html-template location="component://common-theme/template/includes/Messages.ftl"/></html></platform-specific>
                              <decorator-section-include name="body"/>
                          </container>
-                             <container style="col-lg-2 order-lg-3 order-3"><include-screen name="${rightbarScreenName}" location="${rightbarScreenLocation}"/></container>
+                             <container id="div2" style="col-lg-2 order-lg-3 order-3"><include-screen name="${rightbarScreenName}" location="${rightbarScreenLocation}"/></container>
                          <container id="div4" style="endcolumns"/>
                     </container>