From 33ec31a8f442454bcdc778fb0e2feddfd3e64006 Mon Sep 17 00:00:00 2001 From: Bilgin Ismet Ibryam Date: Wed, 13 Aug 2008 16:03:24 +0000 Subject: [PATCH] Fix for my previous commit. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@685596 13f79535-47bb-0310-9956-ffa450edef68 --- .../order/webapp/ordermgr/entry/catalog/productdetail.ftl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applications/order/webapp/ordermgr/entry/catalog/productdetail.ftl b/applications/order/webapp/ordermgr/entry/catalog/productdetail.ftl index b9e81f8086..16cd1cf447 100644 --- a/applications/order/webapp/ordermgr/entry/catalog/productdetail.ftl +++ b/applications/order/webapp/ordermgr/entry/catalog/productdetail.ftl @@ -150,9 +150,11 @@ ${virtualJavaScript?if_exists} // eval the next list if there are more var selectedValue = document.forms["addform"].elements[name].options[(index*1)+1].value; if (index == -1) { + <#if featureOrderFirst?exists> var Variable1 = eval("list" + "${featureOrderFirst}" + "()"); + } else { - eval("list" + OPT[(currentFeatureIndex+1)] + selectedValue + "()"); + var Variable1 = eval("list" + OPT[(currentFeatureIndex+1)] + selectedValue + "()"); } // set the product ID to NULL to trigger the alerts setAddProductId('NULL');