* Fix kanban error.

This commit is contained in:
孙广明
2022-07-01 14:39:16 +08:00
parent 190890790a
commit 1454cee84f
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -916,7 +916,7 @@ class bug extends control
* @access public
* @return void
*/
public function edit($bugID, $comment = false, $kanbanGroup = '')
public function edit($bugID, $comment = false, $kanbanGroup = 'default')
{
if(!empty($_POST))
{
@@ -1351,7 +1351,7 @@ class bug extends control
* @access public
* @return void
*/
public function assignTo($bugID, $kanbanGroup = '')
public function assignTo($bugID, $kanbanGroup = 'default')
{
$bug = $this->bug->getById($bugID);
$this->bug->checkBugExecutionPriv($bug);
+1 -1
View File
@@ -827,7 +827,7 @@ class kanbanModel extends model
*/
public function getRDKanban($executionID, $browseType = 'all', $orderBy = 'id_desc', $regionID = 0, $groupBy = 'default', $searchValue = '')
{
if($groupBy != 'default') return $this->getKanban4Group($executionID, $browseType, $groupBy, $searchValue);
if($groupBy != 'default' and $groupBy != '') return $this->getKanban4Group($executionID, $browseType, $groupBy, $searchValue);
$kanbanData = array();
$actions = array('sortGroup');
+2 -2
View File
@@ -662,7 +662,7 @@ class story extends control
* @access public
* @return void
*/
public function edit($storyID, $kanbanGroup = '')
public function edit($storyID, $kanbanGroup = 'default')
{
if(!empty($_POST))
{
@@ -1701,7 +1701,7 @@ class story extends control
* @access public
* @return void
*/
public function assignTo($storyID, $kanbanGroup = '')
public function assignTo($storyID, $kanbanGroup = 'default')
{
if(!empty($_POST))
{
+3 -3
View File
@@ -470,7 +470,7 @@ class task extends control
* @access public
* @return void
*/
public function edit($taskID, $comment = false, $kanbanGroup = '')
public function edit($taskID, $comment = false, $kanbanGroup = 'default')
{
$this->commonAction($taskID);
$task = $this->task->getById($taskID);
@@ -712,7 +712,7 @@ class task extends control
* @access public
* @return void
*/
public function assignTo($executionID, $taskID, $kanbanGroup = '')
public function assignTo($executionID, $taskID, $kanbanGroup = 'default')
{
$this->commonAction($taskID);
$task = $this->task->getByID($taskID);
@@ -2110,7 +2110,7 @@ class task extends control
* @access public
* @return void
*/
public function editTeam($executionID, $task, $kanbanGroup = '')
public function editTeam($executionID, $task, $kanbanGroup = 'default')
{
$taskID = $task->id;
$this->commonAction($taskID);