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

Issue in function getVariantSelectionFeatures of ProductWorker.java

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk, Release Branch 16.11, Release Branch 17.12, Release Branch 18.12
    • Fix Version/s: 17.12.01, 16.11.06, 18.12.01
    • Component/s: product
    • Labels:

      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

          Activity

            People

            • Assignee:
              aditya.sharma Aditya Sharma
              Reporter:
              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