diff --git a/module/bug/zen.php b/module/bug/zen.php index 537e5bc996..647061f3c8 100644 --- a/module/bug/zen.php +++ b/module/bug/zen.php @@ -817,7 +817,7 @@ class bugZen extends bug if($this->app->tab == 'execution') { - if(isset($output['executionID'])) $this->loadModel('execution')->setMenu($output['executionID']); + if(isset($output['executionID'])) $this->loadModel('execution')->setMenu((int)$output['executionID']); $execution = $this->dao->findById($this->session->execution)->from(TABLE_EXECUTION)->fetch(); if($execution->type == 'kanban') $this->assignKanbanVars($execution, $output); } diff --git a/module/execution/ui/bug.html.php b/module/execution/ui/bug.html.php index d5eb74050c..5f31008e4c 100644 --- a/module/execution/ui/bug.html.php +++ b/module/execution/ui/bug.html.php @@ -23,7 +23,7 @@ $canExportBug = hasPriv('bug', 'export'); $canCreateBug = hasPriv('bug', 'create') && common::canModify('execution', $execution); if($canExportBug) $exportItem = array('icon' => 'export', 'class' => 'ghost', 'text' => $lang->bug->export, 'url' => $this->createLink('bug', 'export', "productID={$productID}&browseType=&executionID={$execution->id}"), 'data-toggle' => 'modal'); -if($canCreateBug) $createItem = array('icon' => 'plus', 'class' => 'primary', 'text' => $lang->bug->create, 'url' => $this->createLink('bug', 'create', "productID={$defaultProduct}&branch=0&extras=executionID={$execution->id}")); +if($canCreateBug) $createItem = array('icon' => 'plus', 'class' => 'primary', 'text' => $lang->bug->create, 'url' => $this->createLink('bug', 'create', "productID={$defaultProduct}&branch=0&extras=executionID={$execution->id}"), 'data-app' => 'execution'); toolbar ( !empty($canExportBug) ? item(set($exportItem)) : null,