From: cajus Date: Fri, 29 Jan 2010 16:57:05 +0000 (+0000) Subject: Fixed hotplug device handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e8095402012cf1730271eb96764999d95f75d1eb;p=gosa.git Fixed hotplug device handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15466 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; + } + } + } }