*Finish task #45822.

This commit is contained in:
zhengrunyu
2021-12-13 09:50:32 +08:00
parent 9c56619418
commit 3dde658da2
2 changed files with 8 additions and 6 deletions
+4 -5
View File
@@ -209,11 +209,10 @@ class kanban extends control
if(!empty($_POST))
{
$laneID = $this->kanban->createLane($kanbanID, $regionID, $lane = null);
if(dao::isError()) die(js::error(dao::getError()));
$this->loadModel('action')->create('kanbanLane', $laneID, 'created');
if(dao::isError()) die(js::error(dao::getError()));
die(js::reload('parent.parent'));
}
$this->view->lanes = $this->kanban->getLanePairsByRegion($regionID);
@@ -237,9 +236,9 @@ class kanban extends control
$order = $position == 'left' ? $column->order : $column->order + 1;
$columnID = $this->kanban->createColumn($column->region, null, $order);
$this->loadModel('action')->create('kanbanColumn', $columnID, 'Created');
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
if(dao::isError()) die(js::error(dao::getError()));
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent', 'callback' => 'closeModalAndUpdateKanban', 'callback_params' => $column->region));
die(js::reload('parent.parent'));
}
$this->view->title = $this->lang->kanban->createColumn;
+4 -1
View File
@@ -32,7 +32,10 @@
</td>
</tr>
<tr>
<td class='text-center form-actions' colspan='2'><?php echo html::submitButton();?></td>
<td class='text-center form-actions' colspan='2'>
<?php echo html::submitButton();?>
<?php echo html::commonButton($lang->cancel, "data-dismiss='modal'", 'btn btn-wide');?>
</td>
</tr>
</tbody>
</table>