This commit is contained in:
zhangzilong
2022-02-15 15:04:21 +08:00
parent abf746ad62
commit b64dc4da7b
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -1317,6 +1317,7 @@ class kanban extends control
if($confirm == 'no')
{
$card = $this->kanban->getCardByID($cardID);
a($card);
$column = $this->dao->select('*')->from(TABLE_KANBANCOLUMN)->where('id')->eq($card->column)->fetch();
if($column->archived or $column->deleted) die(js::alert(sprintf($this->lang->kanbancard->confirmRestoreTip, $column->name)));
+2 -1
View File
@@ -438,6 +438,7 @@ class kanbanModel extends model
->add('kanban', $kanbanID)
->add('region', $regionID)
->add('group', $groupID)
->add('column', $columnID)
->add('createdBy', $this->app->user->account)
->add('createdDate', $now)
->add('assignedDate', $now)
@@ -2036,7 +2037,7 @@ class kanbanModel extends model
$lane->type = $type;
$lane->execution = $executionID;
$this->dao->insert(TABLE_KANBANLANE)->data($lane)->exec();
$laneID = $this->dao->lastInsertId();
$this->createExecutionColumns($laneID, $type, $executionID);
}