From e8095402012cf1730271eb96764999d95f75d1eb Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 29 Jan 2010 16:57:05 +0000 Subject: [PATCH] Fixed hotplug device handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15466 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/devices/class_deviceGeneric.inc | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc index b4a8ebe5a..76acbdbf1 100644 --- a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc +++ b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc @@ -136,19 +136,20 @@ class deviceGeneric extends plugin public function save_object() { - /* Refresh base */ - if ($this->acl_is_moveable($this->base)){ - if (!$this->baseSelector->update()) { - msg_dialog::display(_("Error"), msgPool::permMove(), ERROR_DIALOG); - } - if ($this->base != $this->baseSelector->getBase()) { - $this->base= $this->baseSelector->getBase(); - $this->is_modified= TRUE; - } - } - if(isset($_POST['deviceGeneric_posted'])){ plugin::save_object(); + + /* Refresh base */ + if ($this->acl_is_moveable($this->base)){ + if (!$this->baseSelector->update()) { + msg_dialog::display(_("Error"), msgPool::permMove(), ERROR_DIALOG); + } + if ($this->base != $this->baseSelector->getBase()) { + $this->base= $this->baseSelector->getBase(); + $this->is_modified= TRUE; + } + } + } } -- 2.30.2