* Finish task #57904.
This commit is contained in:
@@ -917,6 +917,7 @@ class kanban extends control
|
||||
public function editCard($cardID)
|
||||
{
|
||||
$this->loadModel('action');
|
||||
$this->loadModel('user');
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$changes = $this->kanban->updateCard($cardID);
|
||||
@@ -934,12 +935,14 @@ class kanban extends control
|
||||
$card = $this->kanban->getCardByID($cardID);
|
||||
$kanban = $this->kanban->getById($card->kanban);
|
||||
$kanbanUsers = $card->kanban == 0 ? ',' : trim($kanban->owner) . ',' . trim($kanban->team);
|
||||
$users = $this->loadModel('user')->getPairs('noclosed|nodeleted', '', 0, $kanbanUsers);
|
||||
$kanbanUsers = $this->user->getPairs('noclosed|nodeleted', '', 0, $kanbanUsers);
|
||||
$users = $this->user->getPairs('noclosed|nodeleted');
|
||||
|
||||
$this->view->card = $card;
|
||||
$this->view->actions = $this->action->getList('kanbancard', $cardID);
|
||||
$this->view->users = $users;
|
||||
$this->view->kanban = $kanban;
|
||||
$this->view->card = $card;
|
||||
$this->view->actions = $this->action->getList('kanbancard', $cardID);
|
||||
$this->view->users = $users;
|
||||
$this->view->kanbanUsers = $kanbanUsers;
|
||||
$this->view->kanban = $kanban;
|
||||
|
||||
$this->display();
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
<table class="table table-form">
|
||||
<tr>
|
||||
<th><?php echo $lang->kanbancard->assignedTo;?></th>
|
||||
<td><?php echo html::select('assignedTo[]', $users, $card->assignedTo, "class='form-control chosen' multiple");?></td>
|
||||
<td><?php echo html::select('assignedTo[]', $kanbanUsers, $card->assignedTo, "class='form-control chosen' multiple");?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><?php echo $lang->kanbancard->begin;?></th>
|
||||
|
||||
Reference in New Issue
Block a user