diff --git a/extension/lite/execution/ext/control/create.php b/extension/lite/execution/ext/control/create.php index cd8f6aed3a..f5f9ffd2f1 100644 --- a/extension/lite/execution/ext/control/create.php +++ b/extension/lite/execution/ext/control/create.php @@ -4,7 +4,7 @@ class myExecution extends execution { public function create($projectID = '', $executionID = 0, $copyExecutionID = '', $planID = 0, $confirm = 'no', $productID = 0, $extra = '') { - $this->config->execution->create->requiredFields = 'name,code,begin,end'; + $this->config->execution->create->requiredFields = 'name,code,begin,end'; parent::create($projectID, $executionID, $copyExecutionID, $planID, $confirm, $productID, $extra); } -} \ No newline at end of file +} diff --git a/extension/lite/product/ext/view/browse.html.php b/extension/lite/product/ext/view/browse.html.php index 524ca6c491..898cc404f8 100644 --- a/extension/lite/product/ext/view/browse.html.php +++ b/extension/lite/product/ext/view/browse.html.php @@ -20,22 +20,25 @@ body {margin-bottom: 25px;} .assignedTo{border-radius: 4px !important;} #productStoryForm table tbody tr td.c-actions .dividing-line {width: 1px; height: 16px; display: inline-block; vertical-align: middle; background: #F4F5F7; margin: 0 4px 0 0;} - - - - -app->rawModule);?> -app->tab == 'product' ? $product->type : '');?> product->browse->unfoldStories) ? json_decode($config->product->browse->unfoldStories, true) : array(); -$unfoldStories = zget($unfoldStories, $productID, array()); +$lang->story->createCommon = $storyType == 'story' ? $lang->story->createStory : $lang->story->createRequirement; +$unfoldStories = isset($config->product->browse->unfoldStories) ? json_decode($config->product->browse->unfoldStories, true) : array(); +$unfoldStories = zget($unfoldStories, $productID, array()); +$isProjectStory = $this->app->rawModule == 'projectstory'; +$projectHasProduct = $isProjectStory && !empty($project->hasProduct); +$projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; js::set('unfoldStories', $unfoldStories); js::set('unfoldAll', $lang->execution->treeLevel['all']); js::set('foldAll', $lang->execution->treeLevel['root']); js::set('storyType', $storyType); -$lang->story->createCommon = $storyType == 'story' ? $lang->story->createStory : $lang->story->createRequirement; -$isProjectStory = $this->app->rawModule == 'projectstory'; -$projectIDParam = $isProjectStory ? "projectID=$projectID&" : ''; +js::set('browseType', $browseType); +js::set('productID', $productID); +js::set('projectID', $projectID); +js::set('branch', $branch); +js::set('rawModule', $this->app->rawModule); +js::set('productType', $this->app->tab == 'product' ? $product->type : ''); +js::set('projectHasProduct', $projectHasProduct); +js::set('URAndSR', $this->config->URAndSR); ?> release->name;?> + shadow):?>
+ release->last . ': ' . $lastRelease->name . ')';?> + shadow):?> + id);?> + release->product;?> @@ -43,6 +48,7 @@ + release->build;?> diff --git a/module/projectstory/control.php b/module/projectstory/control.php index 8e2eb76c43..35b2292286 100644 --- a/module/projectstory/control.php +++ b/module/projectstory/control.php @@ -40,7 +40,7 @@ class projectStory extends control if($projectID) { $project = $this->loadModel('project')->getByID($projectID); - if(!$project->hasProduct) $productID = $this->dao->select('product')->from(TABLE_PROJECTPRODUCT)->where('project')->eq($projectID)->fetch('product'); + if(!$project->hasProduct) $productID = $this->loadModel('product')->getShadowProductByProject($projectID)->id; } $this->products = $this->loadModel('product')->getProductPairsByProject($projectID); diff --git a/module/story/control.php b/module/story/control.php index a9beabac45..1f16da235e 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -972,6 +972,7 @@ class story extends control $project = $this->dao->findByID($executionID)->from(TABLE_PROJECT)->fetch(); if($project->type == 'project') { + if(!($project->model == 'scrum' and !$project->hasProduct and $project->multiple)) $this->view->hiddenPlan = true; $this->project->setMenu($executionID); } else diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php index ea2bc86610..96697c0fab 100644 --- a/module/story/view/edit.html.php +++ b/module/story/view/edit.html.php @@ -204,26 +204,6 @@ status);?> - status) !== false and $story->type == 'story'):?> - - story->stage;?> - - stages and $branchTagOption) - { - foreach($story->stages as $branch => $stage) - { - if(isset($branchTagOption[$branch])) echo '

' . $branchTagOption[$branch] . html::select("stages[$branch]", $lang->story->stageList, $stage, "class='form-control chosen'") . '

'; - } - } - else - { - echo html::select('stage', $lang->story->stageList, $story->stage, "class='form-control chosen'"); - } - ?> - - - story->category;?> story->categoryList, $story->category, "class='form-control chosen'");?>