svn commit: r676849 - /ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r676849 - /ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy

lektran
Author: lektran
Date: Tue Jul 15 02:32:12 2008
New Revision: 676849

URL: http://svn.apache.org/viewvc?rev=676849&view=rev
Log:
Fixed a couple of bugs, reported by Roy in the user list.

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy?rev=676849&r1=676848&r2=676849&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductDetail.groovy Tue Jul 15 02:32:12 2008
@@ -44,7 +44,7 @@
     buf = new StringBuffer();
     buf.append("function listFT" + current + prefix + "() { ");
     buf.append("document.forms[\"addform\"].elements[\"FT" + current + "\"].options.length = 1;");
-    buf.append("document.forms[\"addform\"].elements[\"FT" + current + "\"].options[0] = new Option(\"" + featureTypes.current + "\",\"\",true,true);");
+    buf.append("document.forms[\"addform\"].elements[\"FT" + current + "\"].options[0] = new Option(\"" + featureTypes[current] + "\",\"\",true,true);");
     map.each { key, value ->
         optValue = null;
 
@@ -331,7 +331,7 @@
 
                     // build dynamic lists
                     if (variantTree) {
-                        variantTree.eachWithIndex { varTree, topLevelKeysCt ->
+                        variantTree.values().eachWithIndex { varTree, topLevelKeysCt ->
                             cnt = "" + topLevelKeysCt;
                             if (varTree instanceof Map) {
                                 jsBuf.append(buildNext(varTree, featureOrder, featureOrder[1], cnt, featureTypes));