Explorar el Código

deault value for item_type

star7th hace 4 años
padre
commit
39b045e5b9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      server/Application/Api/Controller/ItemController.class.php

+ 1 - 1
server/Application/Api/Controller/ItemController.class.php

@@ -508,7 +508,7 @@ class ItemController extends BaseController {
         $copy_item_id = I("copy_item_id");
         $password = I("password");
         $item_description = I("item_description");
-        $item_type = I("item_type");
+        $item_type = I("item_type") ? I("item_type") : 1 ;
 
         if ($item_domain) {