From ac4c4bc423eabf3cafb9b2eb46abeb852833f1e6 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 15 Sep 2010 13:38:07 +0000 Subject: [PATCH] Updated device plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19688 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/devices/class_registeredDevice.inc | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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") - ) - )); + ) + ) + ); } } -- 2.30.2