$buttonTitle", '', "class='btn btn-secondary $hidden' data-app='execution'");
if($common::hasPriv('story', 'create') and common::hasPriv('story', 'batchCreate'))
diff --git a/module/execution/view/task.html.php b/module/execution/view/task.html.php
index 25942972aa..8da2e6a399 100644
--- a/module/execution/view/task.html.php
+++ b/module/execution/view/task.html.php
@@ -34,30 +34,29 @@ body {margin-bottom: 25px;}
.btn-group button.dropdown-toggle.btn-primary {padding:6px;}
+ product->getById($productID);
+ $removeLink = $browseType == 'byproduct' ? inlink('task', "executionID=$executionID&browseType=$status¶m=0&orderBy=$orderBy&recTotal=0&recPerPage={$pager->recPerPage}") : 'javascript:removeCookieByKey("productBrowseParam")';
+ $moduleName = $product->name;
+ $html = $moduleName . html::a($removeLink, "
", '', "class='text-muted'");
+ }
+ elseif(!empty($moduleID))
+ {
+ $module = $this->tree->getById($moduleID);
+ $removeLink = $browseType == 'bymodule' ? inlink('task', "executionID=$executionID&browseType=$status¶m=0&orderBy=$orderBy&recTotal=0&recPerPage={$pager->recPerPage}") : 'javascript:removeCookieByKey("moduleBrowseParam")';
+ $moduleName = $module->name;
+ $html = $moduleName . html::a($removeLink, "
", '', "class='text-muted'");
+ }
+ else
+ {
+ $this->app->loadLang('tree');
+ $html = $moduleName = $this->lang->tree->all;
+ }
+ ?>