Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4023

Wrong product displayed as associated product

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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.

      I will attach a patch which does fix 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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jleroux Jacques Le Roux
            amj Anne Jessel
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment