mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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);
|
$metaconsoleId = static::extractMetaconsoleId($data);
|
||||||
if ($metaconsoleId !== null && $metaconsoleId <= 0) {
|
if ($metaconsoleId !== null && $metaconsoleId <= 0) {
|
||||||
$agentData['metaconsoleId'] = null;
|
$agentData['metaconsoleId'] = null;
|
||||||
|
} else {
|
||||||
|
$agentData['metaconsoleId'] = $metaconsoleId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The agent Id should be a valid int or a null value.
|
// The agent Id should be a valid int or a null value.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user