* Fix code details.
This commit is contained in:
@@ -527,8 +527,8 @@ function findDropColumns($element, $root)
|
||||
function changeCardColType(card, fromColType, toColType, kanbanID)
|
||||
{
|
||||
if(typeof card == 'undefined') return false;
|
||||
var objectID = card.id;
|
||||
var showIframe = false;
|
||||
var objectID = card.id;
|
||||
var showIframe = false;
|
||||
|
||||
/* Task lane. */
|
||||
if(kanbanID == 'task')
|
||||
|
||||
@@ -155,7 +155,7 @@ js::set('priv',
|
||||
'canCloseTask' => common::hasPriv('task', 'close'),
|
||||
'canActivateTask' => common::hasPriv('task', 'activate'),
|
||||
'canStartTask' => common::hasPriv('task', 'start'),
|
||||
'canConfirmBug' => common::hasPriv('bug', 'confirm')
|
||||
'canConfirmBug' => common::hasPriv('bug', 'confirmBug')
|
||||
)
|
||||
);
|
||||
?>
|
||||
|
||||
@@ -722,9 +722,9 @@ class kanban extends control
|
||||
* @param string $browseType
|
||||
* @param string $browseType
|
||||
* @access public
|
||||
* @return void
|
||||
* @return json
|
||||
*/
|
||||
public function ajaxMoveCard($cardID, $fromColID, $toColType = 'ready', $executionID, $browseType, $groupBy)
|
||||
public function ajaxMoveCard($cardID = 0, $fromColID = 0, $toColType = 'ready', $executionID = 0, $browseType = 'all', $groupBy = '')
|
||||
{
|
||||
$fromColumn = $this->dao->select('*')->from(TABLE_KANBANCOLUMN)->where('id')->eq($fromColID)->fetch();
|
||||
$toColumn = $this->dao->select('*')->from(TABLE_KANBANCOLUMN)->where('type')->eq($toColType)->andWhere('lane')->eq($fromColumn->lane)->fetch();
|
||||
|
||||
Reference in New Issue
Block a user