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

Wrong invocation of the ProductContentWrapper.getProductContentAsText method due to 516158 revision

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Trunk
    • content, order
    • None

    Description

      Due to revision 516158 - "refactored renderContentAsText to invoke content services when called", there is wrong invocation of the ProductContentWrapper.getProductContentAsText(GenericValue, String, Locale, LocalDispatcher) method in the applications/order/webapp/ordermgr/entry/cart/showcartitems.ftl file

      If we want to add a product to the cart while creating order we got an error:

      No signature of method getProductContentAsText matches (org.ofbiz.entity.GenericValue,java.lang.String,java.util.Locale) The problematic instruction: ---------- ==> assignment: alternativeOptionName=Static["org.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(alternativeOptionProduct, "PRODUCT_NAME", locale)?if_exists [on line 204, column 21 in showcartitems.ftl]......

      The patch fixes that problem.

      Attachments

        1. showcartitems.patch
          1 kB
          Rashko Rejmer
        2. showcartitems2.patch
          2 kB
          Rashko Rejmer

        Activity

          People

            jleroux Jacques Le Roux
            rrejmer Rashko Rejmer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: