From 7cc23bf1bf74846a7bef05a1c635889fdc92358d Mon Sep 17 00:00:00 2001 From: Florian Bachmann Date: Fri, 20 Oct 2017 08:55:13 +0200 Subject: [PATCH] force use of autoincrement id for generating the SQL query --- application/forms/IcingaTemplateChoiceForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/forms/IcingaTemplateChoiceForm.php b/application/forms/IcingaTemplateChoiceForm.php index c3388fbb..2359fc15 100644 --- a/application/forms/IcingaTemplateChoiceForm.php +++ b/application/forms/IcingaTemplateChoiceForm.php @@ -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');