From: hickert Date: Wed, 15 Sep 2010 13:38:07 +0000 (+0000) Subject: Updated device plugin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac4c4bc423eabf3cafb9b2eb46abeb852833f1e6;p=gosa.git Updated device plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19688 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc b/gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc index 0f82cd36b..c947f5b5e 100644 --- a/gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc +++ b/gosa-plugins/goto/admin/systems/goto/devices/class_registeredDevice.inc @@ -11,13 +11,22 @@ class registeredDevice extends plugin function execute() { plugin::execute(); - $smarty = get_smarty(); foreach($this->attributes as $attr){ $smarty->assign($attr, $this->$attr); } return($smarty->fetch(get_template_path('goto/devices/registeredDevice.tpl', TRUE))); - + } + + + function save() + { + plugin::save(); + $this->cleanup(); + $ldap=$this->config->get_ldap_link(); + $ldap->cd($this->config->current['BASE']); + $ldap->cd($this->dn); + $ldap->modify($this->attrs); } @@ -45,8 +54,9 @@ class registeredDevice extends plugin "manager" => _("Manager"), "deviceUUID" => _("Uuid"), "deviceStatus" => _("Stauts") - ) - )); + ) + ) + ); } }