* [bug#52151,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2024-07-04 16:46:52 +08:00
committed by 田淑杰
parent 34a4f721e0
commit ab0922e090
4 changed files with 9 additions and 7 deletions
+2
View File
@@ -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)
+1 -1
View File
@@ -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';
+5 -1
View File
@@ -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);
+1 -5
View File
@@ -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';