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

Issue in function getVariantSelectionFeatures of ProductWorker.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Release Branch 16.11, Release Branch 18.12, Release Branch 17.12, Trunk
    • 16.11.06, 17.12.01, 18.12.01
    • product

    Description

      
      //代码占位符
      public static List<GenericValue> getVariantSelectionFeatures(GenericValue variantProduct) {
      if (!"Y".equals(variantProduct.getString("isVariant"))) {
      return null;
      }
      GenericValue virtualProduct = ProductWorker.getParentProduct(variantProduct.getString("productId"), variantProduct.getDelegator());
      if (virtualProduct == null || !"Y".equals(virtualProduct.getString("productId"))) {
      return null;
      }
      

      for the above coding, i guess the part colored by red should be the following,

      //代码占位符
      if (virtualProduct == null || !"Y".equals(virtualProduct.getString("isVirtual"))) {
      

      thanks!

       

      Attachments

        1. OFBIZ-11029.patch
          1 kB
          Pawan Verma

        Activity

          People

            adityasharma Aditya Sharma
            delonzhou Denglong Zhou
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified