sjw 4 лет назад
Родитель
Сommit
4ce8453a3a
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      src/rest/openapi/restcontroller/housekeeper/titem/AgentTitem.java

+ 3 - 3
src/rest/openapi/restcontroller/housekeeper/titem/AgentTitem.java

@@ -92,13 +92,13 @@ public class AgentTitem extends Controller {
                     addtitem.setValue("fitemname",where.getString("fitemname"),11l);
                     addtitem.setValue("fisused",where.getBoolean("fisused"),11l);
                     if(where.containsKey("fmodel")&&StringUtils.isBlank("fmodel")){
-                        addtitem.setValue("fmodel",where.getBoolean("fmodel"),11l);
+                        addtitem.setValue("fmodel",where.getString("fmodel"),11l);
                     }
                     if(where.containsKey("fspec")&&StringUtils.isBlank("fspec")){
-                        addtitem.setValue("fspec",where.getBoolean("fspec"),11l);
+                        addtitem.setValue("fspec",where.getString("fspec"),11l);
                     }
                     if(where.containsKey("fnotes")&&StringUtils.isBlank("fnotes")){
-                        addtitem.setValue("fnotes",where.getBoolean("fnotes"),11l);
+                        addtitem.setValue("fnotes",where.getString("fnotes"),11l);
                     }
                     long uniqueIDValue = addtitem.getUniqueIDValue();
                     tagents_titem.save();