|
|
@@ -455,7 +455,7 @@ class ApproachDeclarationUpgradeForm extends Model
|
|
|
$maxPerfInfo = DeclarationLevel::getMaxDecPref();
|
|
|
$maxDecId = $maxPerfInfo['ID']; // 级别配置中最高级别ID
|
|
|
$this->maxLv = $maxPerfInfo['ID'];
|
|
|
- if ($this->isMax) {
|
|
|
+ if (!$this->isMax) {
|
|
|
if ($maxDecId == $userDecId) {
|
|
|
$this->addError($attribute, 'It is already the highest level and no upgrade is required');//已是最高级别,无需升级
|
|
|
return false;
|