mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 11:19:16 +02:00
BasketSnapshotFieldResolver: give UNKNOWN, not NEW
This occurs on field removal too
This commit is contained in:
parent
d3625e807d
commit
1d787ccb47
@ -114,6 +114,8 @@ class BasketSnapshotFieldResolver
|
||||
}
|
||||
|
||||
/**
|
||||
* For diff purposes only, gives '(UNKNOWN)' for fields missing in our DB
|
||||
*
|
||||
* @param object $object
|
||||
* @throws \Icinga\Exception\NotFoundError
|
||||
*/
|
||||
@ -127,7 +129,7 @@ class BasketSnapshotFieldResolver
|
||||
if (isset($map[$id])) {
|
||||
$field->datafield_id = $map[$id];
|
||||
} else {
|
||||
$field->datafield_id = "(NEW)";
|
||||
$field->datafield_id = "(UNKNOWN)";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user