diff --git a/api/v1/entries/users.php b/api/v1/entries/users.php index 3e0a5bf543..9696cb0211 100644 --- a/api/v1/entries/users.php +++ b/api/v1/entries/users.php @@ -62,8 +62,8 @@ class usersEntry extends entry $password = $this->request('password', '') ? md5($this->request('password')) : ''; - $visions = $this->request('visions', 'rnd'); - if(is_array($visions)) $visions = implode(',', $visions); + $visions = $this->request('visions', array('rnd')); + if(!is_array($visions)) $visions = explode(',', $visions); $this->setPost('password1', $password); $this->setPost('password2', $password); diff --git a/extension/lite/kanban/ext/model/lite.php b/extension/lite/kanban/ext/model/lite.php index 3406eb1c33..5415abe686 100644 --- a/extension/lite/kanban/ext/model/lite.php +++ b/extension/lite/kanban/ext/model/lite.php @@ -5,6 +5,16 @@ public function __construct($appName = '') if($this->app->getModuleName() == 'kanban') $this->lang->kanban->menu = new stdclass(); } +/** + * Get kanban group by execution id. + * + * @param int $executionID + * @param int $browseType + * @param int $groupBy + * @param string $searchValue + * @access public + * @return array + */ public function getKanban4Group($executionID, $browseType, $groupBy, $searchValue = '') { /* Get card data. */ @@ -85,7 +95,7 @@ public function getKanban4Group($executionID, $browseType, $groupBy, $searchValu $columnData[$columnID]['actions'] = $column->actions; $cardOrder = 1; - $objects = zget($cardGroup, $columnID, array()); + $objects = zget($cardGroup, $column->columnType, array()); foreach($objects as $object) { if(empty($object)) continue; @@ -104,10 +114,14 @@ public function getKanban4Group($executionID, $browseType, $groupBy, $searchValu if($browseType == 'task') { + if($searchValue != '' and strpos($object->name, $searchValue) === false) continue; $cardData['name'] = $object->name; + $cardData['status'] = $object->status; + $cardData['left'] = $object->left; } else { + if($searchValue != '' and strpos($object->name, $searchValue) === false) continue; $cardData['title'] = $object->title; } @@ -132,6 +146,7 @@ public function getKanban4Group($executionID, $browseType, $groupBy, $searchValu * @param int $kanbanID * @param string $browseType all|task|bug|story * @param string $orderBy + * @param string $searchValue * @access public * @return array */ diff --git a/extension/lite/project/ext/view/execution.html.php b/extension/lite/project/ext/view/execution.html.php index b9fc5931c4..fc569b5f0d 100644 --- a/extension/lite/project/ext/view/execution.html.php +++ b/extension/lite/project/ext/view/execution.html.php @@ -37,17 +37,17 @@
bug->noBug;?>