fix: [internal] Branch setting don't have level value

pull/5924/head
Jakub Onderka 2020-05-19 17:43:18 +02:00
parent 59e635c974
commit ec92a97982
1 changed files with 1 additions and 1 deletions

View File

@ -3226,7 +3226,7 @@ class Server extends AppModel
foreach ($serverSettings as $branchKey => &$branchValue) {
if (isset($branchValue['branch'])) {
foreach ($branchValue as $leafKey => &$leafValue) {
if ($leafValue['level'] == 3 && !(isset($currentSettings[$branchKey][$leafKey]))) {
if ($leafKey !== 'branch' && $leafValue['level'] == 3 && !(isset($currentSettings[$branchKey][$leafKey]))) {
continue;
}
$setting = null;