Visual Console Refactor: bugfix

Former-commit-id: 8243195bd4ed0d4247983c510ed81d5b415915e8
This commit is contained in:
Alejandro Gallardo Escobar 2019-04-22 10:58:01 +02:00
parent 37c562f210
commit 9a186fcb8f
1 changed files with 2 additions and 0 deletions

View File

@ -450,6 +450,8 @@ class Item extends Model
$metaconsoleId = static::extractMetaconsoleId($data);
if ($metaconsoleId !== null && $metaconsoleId <= 0) {
$agentData['metaconsoleId'] = null;
} else {
$agentData['metaconsoleId'] = $metaconsoleId;
}
// The agent Id should be a valid int or a null value.