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);
?>
@@ -73,10 +76,10 @@
' . html::a(helper::createLink('story', 'batchCreate', "productID=$productID&branch=0&moduleID=0&story=0&execution=$execution->id", '', true), $lang->story->batchCreate, '', "class='iframe'") . '';?>
' . html::a(helper::createLink('execution', 'linkStory', "execution=$execution->id", '', true), $lang->execution->linkStory, '', "class='iframe' data-width='90%'") . '';?>
' . html::a('#linkStoryByPlan', $lang->execution->linkStoryByPlan, '', 'data-toggle="modal"') . '';?>
- ';?>
+ ';?>
' . html::a(helper::createLink('task', 'create', "execution=$execution->id", '', true), $lang->task->create, '', "class='iframe'") . '';?>
' . html::a(helper::createLink('task', 'batchCreate', "execution=$execution->id", '', true), $lang->task->batchCreate, '', "class='iframe'") . '';?>
- ';?>
+ ';?>
' . html::a(helper::createLink('bug', 'create', "productID=$productID&branch=0&extra=executionID=$execution->id", '', true), $lang->bug->create, '', "class='iframe'") . '';?>
' . html::a(helper::createLink('bug', 'batchCreate', "productID=$productID&branch=0&executionID=$execution->id", '', true), $lang->bug->batchCreate, '', "class='iframe'") . '';?>
diff --git a/module/kanban/model.php b/module/kanban/model.php
index e38463f858..4342e3da6a 100644
--- a/module/kanban/model.php
+++ b/module/kanban/model.php
@@ -68,6 +68,7 @@ class kanbanModel extends model
$laneType = $groupBy == 'default' ? $lane->type : $lane->groupby;
$laneData['id'] = $groupBy == 'default' ? $lane->type : $lane->groupby . '-' . $lane->extra;
+ $laneData['laneID'] = $laneID;
$laneData['name'] = $lane->name;
$laneData['color'] = $lane->color;
$laneData['order'] = $lane->order;
diff --git a/module/task/view/create.html.php b/module/task/view/create.html.php
index 8803c62b25..ec518cdf50 100644
--- a/module/task/view/create.html.php
+++ b/module/task/view/create.html.php
@@ -241,10 +241,12 @@
+
| task->afterSubmit;?> |
task->afterChoices, !empty($task->id) ? 'toTaskList' : 'continueAdding');?> |
+
|
|