diff --git a/module/execution/js/kanban.js b/module/execution/js/kanban.js index 2d2fa89444..aa6219b821 100644 --- a/module/execution/js/kanban.js +++ b/module/execution/js/kanban.js @@ -547,7 +547,7 @@ function createLaneMenu(options) var downTargetKanban = $kanban.next('.kanban').length ? $kanban.next('.kanban').data('id') : ''; var items = []; - if(priv.hasSetLane) items.push({label: kanbanLang.setLane, icon: 'edit', url: $.createLink('kanban', 'setLane', 'lane=' + lane.id + '&executionID=' + executionID), className: 'iframe'}); + if(priv.hasSetLane) items.push({label: kanbanLang.setLane, icon: 'edit', url: $.createLink('kanban', 'setLane', 'lane=' + lane.laneID + '&executionID=' + executionID), className: 'iframe'}); if(priv.hasLaneMove) items.push( {label: kanbanLang.moveUp, icon: 'arrow-up', url: $.createLink('kanban', 'laneMove', 'executionID=' + executionID + '¤tLane=' + lane.id + '&targetLane=' + upTargetKanban), className: 'iframe', disabled: !$kanban.prev('.kanban').length}, {label: kanbanLang.moveDown, icon: 'arrow-down', url: $.createLink('kanban', 'laneMove', 'executionID=' + executionID + '¤tLane=' + lane.id + '&targetLane=' + downTargetKanban), className: 'iframe', disabled: !$kanban.next('.kanban').length} diff --git a/module/execution/view/kanban.html.php b/module/execution/view/kanban.html.php index 3f5850c713..eeca3a6f5b 100644 --- a/module/execution/view/kanban.html.php +++ b/module/execution/view/kanban.html.php @@ -64,6 +64,9 @@ $canBatchCreateStory = ($productID and common::hasPriv('story', 'batchCreate')); $canLinkStory = ($productID and common::hasPriv('execution', 'linkStory')); $canLinkStoryByPlane = ($productID and common::hasPriv('execution', 'importplanstories')); + $hasStoryButton = ($canCreateStory or $canBatchCreateStory or $canLinkStory or $canLinkStoryByPlane); + $hasTaskButton = ($canCreateTask or $canBatchCreateTask); + $hasBugButton = ($canCreateBug or $canBatchCreateBug); ?>