Details
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!