* [refac] Remove recallChange action config.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user