* Modify the problem of creating a kanban error.

This commit is contained in:
tianshujie
2022-01-28 16:31:03 +08:00
parent 18cd24f4e2
commit 2de963346e
+2 -1
View File
@@ -93,7 +93,8 @@ class kanbanModel extends model
$region->order = $order;
$this->dao->insert(TABLE_KANBANREGION)->data($region)
->batchCheck($this->config->kanban->require->createregion, 'notempty')
->check('name', 'unique', "kanban = {$kanban->id} AND deleted = '0'")
->checkIF($from == 'execution', 'name', 'unique', "kanban = {$kanban->id} AND deleted = '0' AND space = '0'")
->checkIF($from == 'kanban', 'name', 'unique', "kanban = {$kanban->id} AND deleted = '0' AND space != '0'")
->autoCheck()
->exec();