From ebe1af13ead61e33f5bd8781ef1d507107124fd1 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 23 Apr 2021 11:42:46 +0200 Subject: [PATCH] IcingaAddServiceForm: import -> autocomplete fixes #1974 --- application/forms/IcingaAddServiceForm.php | 11 ++++------- doc/82-Changelog.md | 1 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/application/forms/IcingaAddServiceForm.php b/application/forms/IcingaAddServiceForm.php index 8d7fa4fd..fa5571f1 100644 --- a/application/forms/IcingaAddServiceForm.php +++ b/application/forms/IcingaAddServiceForm.php @@ -100,15 +100,12 @@ class IcingaAddServiceForm extends DirectorObjectForm return $this; } - - $this->addElement('select', 'imports', [ + $this->addElement('text', 'imports', [ 'label' => $this->translate('Service'), - 'description' => $this->translate( - 'Choose a service template' - ), + 'description' => $this->translate('Choose a service template'), 'required' => true, - 'multiOptions' => $this->optionalEnum($enum), - 'class' => 'autosubmit' + 'data-suggestion-context' => 'servicetemplates', + 'class' => 'autosubmit director-suggest' ]); return $this; diff --git a/doc/82-Changelog.md b/doc/82-Changelog.md index a62c759a..f3efe3c4 100644 --- a/doc/82-Changelog.md +++ b/doc/82-Changelog.md @@ -25,6 +25,7 @@ next (will be 1.9.0) * FIX: show Override button when all Fields belong to Field Categories (#2303) * FIX: show Services applied with Rules involving applied Hostgroups (#2313) * FEATURE: show "deprecated" flag on object attribute inspection (#2312) +* FEATURE: Service Template for single Host services provides auto-completion (#1974) next patch release (will be 1.8.1) ----------------------------------