소스 검색

deault value for item_type

star7th 4 년 전
부모
커밋
39b045e5b9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) {