hu 2 лет назад
Родитель
Сommit
34c985b0f6
1 измененных файлов с 1 добавлено и 5 удалено
  1. 1 5
      src/custom/restcontroller/sale/itemgroup/itemgroup.java

+ 1 - 5
src/custom/restcontroller/sale/itemgroup/itemgroup.java

@@ -252,11 +252,7 @@ public class itemgroup extends Controller {
         RowsMap itemclassRowsMap = rowsitemclass.toRowsMap("itemid");
         for (Row row : rows) {
             Rows itemRows = itemRowsMap.get(row.getString("itemid"));
-            if (!itemRows.isEmpty()) {
-                row.put("item",itemRows);
-            } else {
-                row.put("item", new Rows());
-            }
+            row.put("item",itemRows);
 
             Rows coverRows = coverRowsMap.get(row.getString("itemid"));
             if (coverRows.isEmpty()) {