mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
force use of autoincrement id for generating the SQL query
This commit is contained in:
parent
bbb180bb6e
commit
7cc23bf1bf
@ -110,7 +110,7 @@ class IcingaTemplateChoiceForm extends DirectorObjectForm
|
||||
if ($object->hasBeenLoadedFromDb()) {
|
||||
$query->where(
|
||||
'o.template_choice_id IS NULL OR o.template_choice_id = ?',
|
||||
$this->object()->getId()
|
||||
$object->get('id')
|
||||
);
|
||||
} else {
|
||||
$query->where('o.template_choice_id IS NULL');
|
||||
|
Loading…
x
Reference in New Issue
Block a user