- fixed "system not found" bug

This commit is contained in:
Mark Friedrich
2018-06-08 20:54:26 +02:00
parent d7cb64aa9c
commit f95d43a884
6 changed files with 121 additions and 109 deletions

View File

@@ -237,7 +237,9 @@ class System extends Controller\AccessController {
$defaultStatusId = $systemModel->statusId;
}
$systemModel->statusId = isset($systemData['statusId']) ? $systemData['statusId'] : $defaultStatusId;
if( !is_null($systemModel) ){
$systemModel->statusId = isset($systemData['statusId']) ? $systemData['statusId'] : $defaultStatusId;
}
// map is not changeable for a system! (security)
$systemData['mapId'] = $map;