mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
GroupMembershipResolver: last inserted ID is int...
...for PostgreSQL - as it should be everywhere :-/ fixes #1500
This commit is contained in:
parent
728bbe523e
commit
9c9a5b5b93
@ -565,7 +565,7 @@ abstract class GroupMembershipResolver
|
|||||||
|
|
||||||
protected function assertBeenLoadedFromDb(IcingaObject $object)
|
protected function assertBeenLoadedFromDb(IcingaObject $object)
|
||||||
{
|
{
|
||||||
if (! ctype_digit($object->get('id'))) {
|
if (! is_int($object->get('id')) && ! ctype_digit($object->get('id'))) {
|
||||||
throw new ProgrammingError(
|
throw new ProgrammingError(
|
||||||
'Group resolver does not support unstored objects'
|
'Group resolver does not support unstored objects'
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user