* [bug#52151,done,0.2h] fix bug.
This commit is contained in:
@@ -109,6 +109,8 @@ window.buildColCardActions = function(col)
|
||||
let laneID = 0;
|
||||
if($group.length) laneID = $group.find('.kanban-lane.is-first').attr('z-lane');
|
||||
|
||||
if(col.laneType == 'parentStory') return [];
|
||||
|
||||
if(col.type == 'backlog')
|
||||
{
|
||||
if(priv.canCreateStory)
|
||||
|
||||
@@ -1405,7 +1405,7 @@ class kanbanModel extends model
|
||||
|
||||
if(empty($object)) continue;
|
||||
if($cell->type == 'parentStory' && $object->isParent != '1') continue;
|
||||
if($cell->type == 'story' && $object->isParent == '1') continue;
|
||||
if($cell->type == 'story' && $object->isParent == '1') continue;
|
||||
|
||||
$cardData = $this->kanbanTao->initCardItem($object, $cell, $order, $avatarPairs, $users);
|
||||
$cardData['acl'] = 'open';
|
||||
|
||||
@@ -479,7 +479,11 @@ class kanbanTao extends kanbanModel
|
||||
}
|
||||
}
|
||||
|
||||
foreach($cols as $colIndex => $col) $cols[$colIndex]['cards'] = isset($columnCount[$col['id']]) ? $columnCount[$col['id']] : 0;
|
||||
foreach($cols as $colIndex => $col)
|
||||
{
|
||||
$cols[$colIndex]['cards'] = isset($columnCount[$col['id']]) ? $columnCount[$col['id']] : 0;
|
||||
$cols[$colIndex]['laneType'] = $lane['type'];
|
||||
}
|
||||
|
||||
$lanes = array_values($lanes);
|
||||
$laneCount += count($lanes);
|
||||
|
||||
@@ -3644,11 +3644,7 @@ class storyModel extends model
|
||||
global $app, $config;
|
||||
$action = strtolower($action);
|
||||
|
||||
if($action == 'subdivide')
|
||||
{
|
||||
if(helper::isAjaxRequest('modal')) return false;
|
||||
$action = 'batchcreate';
|
||||
}
|
||||
if($action == 'subdivide') $action = 'batchcreate';
|
||||
|
||||
if($action == 'recall') return $story->status == 'reviewing' || $story->status == 'changing';
|
||||
if($action == 'close') return $story->status != 'closed';
|
||||
|
||||
Reference in New Issue
Block a user