You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Denglong Zhou (JIRA)" <ji...@apache.org> on 2019/05/14 07:17:00 UTC

[jira] [Created] (OFBIZ-11029) Issue in function getVariantSelectionFeatures of ProductWorker.java

Denglong Zhou created OFBIZ-11029:
-------------------------------------

             Summary: Issue in function getVariantSelectionFeatures of ProductWorker.java
                 Key: OFBIZ-11029
                 URL: https://issues.apache.org/jira/browse/OFBIZ-11029
             Project: OFBiz
          Issue Type: Bug
          Components: product
    Affects Versions: 16.11.05, 18.12.01
            Reporter: Denglong Zhou


{code:java}

//代码占位符
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;
}
{code}
for the above coding, i guess the part colored by red should be the following,
{code:java}
//代码占位符
if (virtualProduct == null || !"Y".equals(virtualProduct.getString("isVirtual"))) {
{code}
thanks!

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)