/[Apache-SVN]
ViewVC logotype

Revision 1042411


Jump to revision: Previous Next
Author: jleroux
Date: Sun Dec 5 19:09:57 2010 UTC (13 years, 5 months ago)
Changed paths: 1
Log Message:
A patch from Anne Jessel "Wrong product displayed as associated product" (https://issues.apache.org/jira/browse/OFBIZ-4023) - OFBIZ-4023

To reproduce:
    * add two associated products to a main product, both with "Complementary or Cross-Sell" association type
    * view the main product in ecommerce

Expected behaviour: the two associated products are listed near the bottom of the page
Actual behaviour: two products are listed at the bottom of the page, but only one of them is an associated product. The other is the main product.
The problem is caused by the value of a freemarker variable changing at a point where other freemarker code assumes the variable does not change. The execution path is complicated.
The patch fixes the problem by saving the value of the key variable into another variable, and restoring it later. However I do wonder if there is a better solution.

JLR: I did not try to find a better solution

Changed paths

Path Details
Directoryofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/catalog/productdetail.ftl modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26