* Finish one version.

This commit is contained in:
孙广明
2022-01-21 15:05:00 +08:00
parent 9e50180887
commit a514a2bb07
2 changed files with 23 additions and 0 deletions
+4
View File
@@ -677,7 +677,11 @@ class kanban extends control
}
else
{
$column = $this->kanban->getColumnById($columnID);
$this->kanban->delete(TABLE_KANBANCOLUMN, $columnID);
if($column->parent) $this->kanban->processParentColumn($column);
die(js::reload('parent'));
}
}
+19
View File
@@ -2841,6 +2841,25 @@ class kanbanModel extends model
if(!dao::isError()) return common::createChanges($oldCard, $card);
}
public function processParentColumn($column)
{
$firstColumnID = $this->dao->select('id')->from(TABLE_KANBANCOLUMN)
->where('parent')->eq($column->parent)
->andWhere('deleted')->eq('0')
->andWhere('archived')->eq('0')
->fetch('id');
$extendID = $firstColumnID ? $firstColumnID : $column->parent;
$cells = $this->dao->select('*')->from(TABLE_KANBANCELL)
->where('`column`')->eq($column->id)
->fetchAll('id');
foreach($cells as $cell)
{
}
}
/**
* Get space by id.
*