This commit is contained in:
孙华伟
2022-02-25 08:38:25 +08:00
parent 890532c727
commit e7920e73b4
2 changed files with 6 additions and 6 deletions

View File

@@ -815,13 +815,12 @@ class execution extends control
$showModule = !empty($this->config->datatable->executionStory->showModule) ? $this->config->datatable->executionStory->showModule : '';
$modulePairs = $showModule ? $this->tree->getModulePairs($type == 'byproduct' ? $param : 0, 'story', $showModule) : array();
if($param)
$this->session->set('executionStoryBrowseParam', $param);
if(isset($_GET['param'])) $isAllProduct = $param;
else $isAllProduct = $this->session->executionStoryBrowseParam;
if($param) $this->session->set('executionStoryBrowseParam', $param ? false : true);
$isAllProduct = true;
if($this->cookie->storyProductParam) $isAllProduct = $this->session->executionStoryBrowseParam;
if(isset($_GET['param'])) $isAllProduct = $param ? false : true; /* Assign. */
/* Assign. */
$this->view->title = $title;
$this->view->position = $position;
$this->view->productID = $productID;

View File

@@ -1,4 +1,5 @@
<?php
a($this->cookie->storyProductParam);
/**
* The story view file of execution module of ZenTaoPMS.
*
@@ -86,7 +87,7 @@
if($common::hasPriv('story', 'create') and common::hasPriv('story', 'batchCreate'))
{
if($isAllProduct != 0 || count($products) == 1) echo "<button type='button' class='btn btn-secondary dropdown-toggle' data-toggle='dropdown'><span class='caret'></span></button>";
if($isAllProduct or count($products) == 1) echo "<button type='button' class='btn btn-secondary dropdown-toggle' data-toggle='dropdown'><span class='caret'></span></button>";
echo "<ul class='dropdown-menu pull-right'>";
echo '<li>' . html::a($createStoryLink, $lang->story->create, '', "data-app='execution'") . '</li>';
echo '<li>' . html::a($batchCreateLink, $lang->story->batchCreate, '', "data-app='execution'") . '</li>';