Merge branch dev/bug-63841 of zentao/zentaopms (#10179)

This commit is contained in:
刘刚
2025-07-04 10:22:21 +08:00
committed by Gitfox
2 changed files with 24 additions and 5 deletions
@@ -0,0 +1,24 @@
<?php
helper::importControl('story');
class myStory extends story
{
/**
* 关闭需求。
* Close the story.
*
* @param int $storyID
* @param string $from
* @param string $storyType
* @access public
* @return void
*/
public function close(int $storyID, string $from = '', string $storyType = 'story')
{
foreach($this->lang->{$storyType}->reasonList as $key => $value)
{
if(!in_array($key, array('done', 'duplicate', 'cancel'))) unset($this->lang->{$storyType}->reasonList[$key]);
}
return parent::close($storyID, $from, $storyType);
}
}
@@ -1,5 +0,0 @@
<?php
foreach($reasonList as $key => $value)
{
if(!in_array($key, array('done', 'duplicate', 'cancel'))) unset($reasonList[$key]);
}