* Fix column bug.

This commit is contained in:
孙广明
2021-12-10 14:46:08 +08:00
parent b08bf7cac6
commit 9e332d17fb
+1 -2
View File
@@ -276,8 +276,7 @@ class kanbanModel extends model
$columnID = $this->dao->lastInsertID();
$maxType = $this->dao->select('type')->from(TABLE_KANBANCOLUMN)->where('`group`')->eq($column->group)->orderBy('type_desc')->limit(1)->fetch('type');
$this->dao->update(TABLE_KANBANCOLUMN)->set('type')->eq($maxType + 1)->where('id')->eq($columnID)->exec();
$this->dao->update(TABLE_KANBANCOLUMN)->set('type = `order`')->where('`group`')->eq($column->group)->exec();
return $columnID;
}