Visual Console Refactor: bugfix
Former-commit-id: 8243195bd4ed0d4247983c510ed81d5b415915e8
This commit is contained in:
parent
37c562f210
commit
9a186fcb8f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue