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

Image rendering issue on productdetail.ftl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • Trunk
    • None
    • ecommerce
    • None
    • FTL code, not relevant

    Description

      Reference: Line 358
      ! <#if productImageList?has_content>

      A validation seems to have been introduced by rev. 1345532 where before on the FTL if clause, both checks (not null and hs content) were executed while now they are no longer. This leads to a failure to render of no related Content Images are on the Product but only attributed image URLs.

      1 <#if productImageList?if_exists && productImageList?has_content>

      Does the trick, so would the earlier version:

      2 <#if productImageList != null && productImageList?has_content>

      I also assume that with rev. 1345532 it was intended to put this here:

      3 <#if productImageList?? && productImageList?has_content>

      I leave it to the FTL pros to comment and recommend for ca. 24 hours.
      If no comment by tomorrow, I shall propose to use the former code corresponding to [3] as this is what was the latest agreement made on OFBIZ-4916.

      Attachments

        Activity

          People

            jleroux Jacques Le Roux
            c_schinzer Carsten Schinzer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: