Author: jleroux
Date: Sat Jan 15 10:03:48 2011
New Revision: 1059279
URL:
http://svn.apache.org/viewvc?rev=1059279&view=revLog:
From Jacopo's remark on user ML: filterByDate was missing, hence possible obsolete variants could have been taken into account
Modified:
ofbiz/trunk/applications/product/widget/catalog/FieldLookupForms.xml
Modified: ofbiz/trunk/applications/product/widget/catalog/FieldLookupForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/widget/catalog/FieldLookupForms.xml?rev=1059279&r1=1059278&r2=1059279&view=diff==============================================================================
--- ofbiz/trunk/applications/product/widget/catalog/FieldLookupForms.xml (original)
+++ ofbiz/trunk/applications/product/widget/catalog/FieldLookupForms.xml Sat Jan 15 10:03:48 2011
@@ -56,7 +56,7 @@ under the License.
</actions>
<row-actions>
- <set field="hasVariants" value="${groovy: delegator.findByAndCache('ProductAssoc', org.ofbiz.base.util.UtilMisc.toMap('productId', productId, 'productAssocTypeId', 'PRODUCT_VARIANT')).size() > 0}" type="Boolean"/>
+ <set field="hasVariants" value="${groovy: org.ofbiz.entity.util.EntityUtil.filterByDate(delegator.findByAndCache('ProductAssoc', org.ofbiz.base.util.UtilMisc.toMap('productId', productId, 'productAssocTypeId', 'PRODUCT_VARIANT'))).size() > 0}" type="Boolean"/>
</row-actions>
<field name="productId" title="${uiLabelMap.ProductProductId}" widget-style="buttontext">
<hyperlink also-hidden="false" target-type="plain" description="${productId}" target="javascript:set_value('${productId}')"/>