@@ -67,7 +84,8 @@
- title;?>
+
title;?>
+
+
+
+
+
+
+ id"), '', '', "title='{$lang->doc->edit}'");
+ if(common::hasPriv('doc', 'delete'))
+ {
+ $deleteURL = $this->createLink('doc', 'delete', "docID=$doc->id&confirm=yes");
+ echo html::a("javascript:ajaxDelete(\"$deleteURL\", \"docList\", confirmDelete)", '', '', "title='{$lang->doc->delete}'");
+ }
+ ?>
+ collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?>
+ id&objectType=doc");?>" title="doc->collect;?>" class='ajaxCollect'>
+
content ? $doc->content : 'çİş';
}
?>
-
files as $file):?>
extension, $config->file->imageExtensions)):?>
-
+
+
digest)):?>
-
+
diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php
index 14217ea5f6..07f84b5b8c 100644
--- a/module/product/view/browse.html.php
+++ b/module/product/view/browse.html.php
@@ -143,7 +143,7 @@ $projectIDParam = $isProjectStory ? "projectID=$projectID&" : '';
diff --git a/module/execution/control.php b/module/execution/control.php
index f4d61dad70..892b35b2f4 100644
--- a/module/execution/control.php
+++ b/module/execution/control.php
@@ -676,8 +676,9 @@ class execution extends control
$this->loadModel('user');
$this->app->loadLang('testcase');
- $type = strtolower($type);
- $param = (int)$param;
+ $type = strtolower($type);
+ $param = $param;
+ $productID = 0;
setcookie('storyPreExecutionID', $executionID, $this->config->cookieLife, $this->config->webRoot, '', false, true);
if($this->cookie->storyPreExecutionID != $executionID)
{
@@ -697,6 +698,7 @@ class execution extends control
}
elseif($type == 'byproduct')
{
+ $productID = $param;
$_COOKIE['storyModuleParam'] = 0;
$_COOKIE['storyProductParam'] = $param;
$_COOKIE['storyBranchParam'] = 0;
@@ -773,23 +775,23 @@ class execution extends control
$allPlans = array('' => '');
if(!empty($plans))
{
- foreach($plans as $productID => $plan) $allPlans += $plan;
+ foreach($plans as $plan) $allPlans += $plan;
}
if($this->cookie->storyModuleParam) $this->view->module = $this->loadModel('tree')->getById($this->cookie->storyModuleParam);
if($this->cookie->storyProductParam) $this->view->product = $this->loadModel('product')->getById($this->cookie->storyProductParam);
if($this->cookie->storyBranchParam)
{
- $productID = 0;
- $branchID = $this->cookie->storyBranchParam;
+ $branchID = $this->cookie->storyBranchParam;
if(strpos($branchID, ',') !== false) list($productID, $branchID) = explode(',', $branchID);
$this->view->branch = $this->loadModel('branch')->getById($branchID, $productID);
}
/* Get execution's product. */
- $productID = 0;
$productPairs = $this->loadModel('product')->getProductPairsByProject($executionID);
- if($productPairs) $productID = key($productPairs);
+
+ if(empty($productID)) $productID = key($productPairs);
+ $modulePairs = $this->tree->getModulePairs($type == 'byproduct' ? $param : 0, 'story', true);
/* Assign. */
$this->view->title = $title;
@@ -803,7 +805,7 @@ class execution extends control
$this->view->type = $this->session->executionStoryBrowseType;
$this->view->param = $param;
$this->view->moduleTree = $this->loadModel('tree')->getProjectStoryTreeMenu($executionID, $startModuleID = 0, array('treeModel', 'createStoryLink'));
- $this->view->modulePairs = $this->tree->getModulePairs(0, 'story', true);
+ $this->view->modulePairs = $modulePairs;
$this->view->tabID = 'story';
$this->view->storyTasks = $storyTasks;
$this->view->storyBugs = $storyBugs;
diff --git a/module/execution/view/story.html.php b/module/execution/view/story.html.php
index 153ea07f4e..f9b0a6b6dd 100644
--- a/module/execution/view/story.html.php
+++ b/module/execution/view/story.html.php
@@ -52,7 +52,7 @@
- createLink('story', 'create', "product=$productID&branch=$branch&moduleID=$moduleID&storyID=0&projectID=0$extraParam"), " {$lang->story->create}", '', "class='btn $buttonType' data-app='$openApp'");?>
+ createLink('story', 'create', "product=$productID&branch=$branch&moduleID=$moduleID&storyID=0&projectID={$this->session->project}$extraParam"), " {$lang->story->create}", '', "class='btn $buttonType' data-app='$openApp'");?>