Browse Source

deault value for item_type

star7th 4 years ago
parent
commit
39b045e5b9
1 changed files with 1 additions and 1 deletions
  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");
         $copy_item_id = I("copy_item_id");
         $password = I("password");
         $password = I("password");
         $item_description = I("item_description");
         $item_description = I("item_description");
-        $item_type = I("item_type");
+        $item_type = I("item_type") ? I("item_type") : 1 ;
 
 
         if ($item_domain) {
         if ($item_domain) {