|
|
@@ -163,9 +163,10 @@ class DeclarationLevel extends \common\components\ActiveRecord
|
|
|
{
|
|
|
$result = [];
|
|
|
$decLv = static::find()->where('1=1')->indexBy('ID')->orderBy('SORT ASC')->asArray()->all();
|
|
|
+ $current = $decLv[$decLvID]['SORT'] ?? '';
|
|
|
foreach ($decLv as $id => $item) {
|
|
|
- if ($decLvID == $id) {
|
|
|
- $result = next($decLv);
|
|
|
+ if ($item['SORT'] == $current + 1) {
|
|
|
+ $result = $item;
|
|
|
break;
|
|
|
}
|
|
|
}
|