* Fix bug #47357.
This commit is contained in:
@@ -36,7 +36,7 @@ $config->metric->actionList['delete']['data-confirm'] = $lang->metric->confirmDe
|
||||
|
||||
$config->metric->actionList['recalculate']['icon'] = 'refresh';
|
||||
$config->metric->actionList['recalculate']['text'] = $lang->metric->recalculate;
|
||||
$config->metric->actionList['recalculate']['hint'] = $lang->metric->recalculate;
|
||||
$config->metric->actionList['recalculate']['hint'] = $lang->metric->recalculateBtnText;
|
||||
$config->metric->actionList['recalculate']['url'] = 'javascript:confirmRecalculate("single", "{code}")';
|
||||
|
||||
$config->metric->necessaryMethodList = array('getStatement', 'calculate', 'getResult');
|
||||
|
||||
@@ -1468,7 +1468,7 @@ class metricModel extends model
|
||||
if($action['name'] == 'recalculate')
|
||||
{
|
||||
$isClick = $metric->canRecalculate;
|
||||
if($metric->stage == 'released' && !empty($metric->dateType) && $metric->dateType != 'nodate') $metric->actions[$key]['hint'] = $this->lang->metric->tips->banRecalculate;
|
||||
if($metric->stage != 'released' || (!empty($metric->dateType) && $metric->dateType == 'nodate')) $metric->actions[$key]['hint'] = $this->lang->metric->tips->banRecalculate;
|
||||
}
|
||||
|
||||
$metric->actions[$key]['disabled'] = !$isClick;
|
||||
|
||||
Reference in New Issue
Block a user