hu před 2 roky
rodič
revize
34c985b0f6

+ 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()) {