[icinga-checkins] icinga.org: icingaweb2-module-director/fiddle/mfrosch: DirectorObjectForm: remove imports exception...

git at icinga.org git at icinga.org
Fri May 20 13:14:59 CEST 2016


Module: icingaweb2-module-director
Branch: fiddle/mfrosch
Commit: 0a475e3bcb79f160fd9e7ccdf5306ffb6b47a7a7
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=0a475e3bcb79f160fd9e7ccdf5306ffb6b47a7a7

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri May 20 08:37:02 2016 +0200

DirectorObjectForm: remove imports exception...

...this is already handled by the object itself

---

 library/Director/Web/Form/DirectorObjectForm.php |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/library/Director/Web/Form/DirectorObjectForm.php b/library/Director/Web/Form/DirectorObjectForm.php
index 6843b5c..0c427a9 100644
--- a/library/Director/Web/Form/DirectorObjectForm.php
+++ b/library/Director/Web/Form/DirectorObjectForm.php
@@ -208,9 +208,7 @@ abstract class DirectorObjectForm extends QuickForm
             foreach ($values as $key => $value) {
                 try {
                     $object->set($key, $value);
-                    if ($key === 'imports') {
-                        $object->importedObjects();
-                    } elseif ($object instanceof IcingaObject) {
+                    if ($object instanceof IcingaObject) {
                         $object->resolveUnresolvedRelatedProperties();
                     }
 



More information about the icinga-checkins mailing list