* [refac] Remove recallChange action config.

This commit is contained in:
wangyuting
2024-05-30 16:54:06 +08:00
committed by caoyanyi
parent d95c1ca18e
commit e53a83ba42
2 changed files with 4 additions and 12 deletions
-7
View File
@@ -75,13 +75,6 @@ $config->story->actionList['recall']['url'] = array('module' => 'story', '
$config->story->actionList['recall']['data-app'] = $app->tab;
$config->story->actionList['recall']['className'] = 'ajax-submit';
$config->story->actionList['recallChange']['icon'] = 'undo';
$config->story->actionList['recallChange']['text'] = $lang->story->recallChange;
$config->story->actionList['recallChange']['hint'] = $lang->story->recallChange;
$config->story->actionList['recallChange']['url'] = array('module' => 'story', 'method' => 'recall', 'params' => 'storyID={id}&from=view&confirm=no&storyType={type}');
$config->story->actionList['recallChange']['data-app'] = $app->tab;
$config->story->actionList['recallChange']['className'] = 'ajax-submit';
$config->story->actionList['review']['icon'] = 'search';
$config->story->actionList['review']['text'] = $lang->story->review;
$config->story->actionList['review']['hint'] = $lang->story->review;
+4 -5
View File
@@ -3226,11 +3226,10 @@ class storyModel extends model
$action = 'batchcreate';
}
if($action == 'recallchange') return $story->status == 'changing';
if($action == 'recall') return $story->status == 'reviewing' || $story->status == 'changing';
if($action == 'close') return $story->status != 'closed';
if($action == 'activate') return $story->status == 'closed';
if($action == 'assignto') return $story->status != 'closed';
if($action == 'recall') return $story->status == 'reviewing' || $story->status == 'changing';
if($action == 'close') return $story->status != 'closed';
if($action == 'activate') return $story->status == 'closed';
if($action == 'assignto') return $story->status != 'closed';
if($action == 'submitreview' && strpos('draft,changing', $story->status) === false) return false;
if($action == 'createtestcase' || $action == 'batchcreatetestcase') return $config->vision != 'lite' && $story->parent >= 0 && $story->type != 'requirement';