From 74f01e94bb0fa3ecb989923b38b2daf3b1183e0f Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 22 Jun 2021 11:36:26 +0800 Subject: [PATCH] * finish task #38705. --- module/story/control.php | 2 +- module/story/model.php | 2 +- module/story/view/batchedit.html.php | 10 ++-------- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index dfcee44396..f0127558e2 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1612,7 +1612,7 @@ class story extends control /* Change for requirement story title. */ if($story->type == 'story') - { + { $this->lang->story->title = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->title); $this->lang->story->create = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->create); $this->config->product->search['fields']['title'] = $this->lang->story->title; diff --git a/module/story/model.php b/module/story/model.php index 5db7895ca3..06f900fe67 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1747,7 +1747,7 @@ class storyModel extends model ->andWhere('t2.deleted')->eq(0) ->fetchPairs('project', 'branch'); - $hasBranch = ($product->type != 'normal' and empty($story->branch)); + $hasBranch = ($product and $product->type != 'normal' and empty($story->branch)); $stages = array(); if($hasBranch and $story->plan) { diff --git a/module/story/view/batchedit.html.php b/module/story/view/batchedit.html.php index 5f16b51bbe..512b2be56e 100644 --- a/module/story/view/batchedit.html.php +++ b/module/story/view/batchedit.html.php @@ -100,16 +100,11 @@ foreach(explode(',', $showFields) as $field) '> plan, "class='form-control chosen'");?> -
- title, "class='form-control input-story-title' disabled"); ?> + title, "class='form-control input-story-title' disabled"); ?> + title); ?>
@@ -117,7 +112,6 @@ foreach(explode(',', $showFields) as $field)
  • story->colorTag;?>
  • color, "class='colorpicker' data-wrapper='input-control-icon-right' data-icon='color' data-btn-tip='{$lang->story->colorTag}' data-update-color='#titles\\[{$storyID}\\]'");?> -