From db011001322c8ade41c7202f36e544688bdbbe87 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Sep 2009 12:10:13 +0000 Subject: [PATCH] Updated license usage dialog. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14351 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/opsiLicenses/class_licenseUsage.inc | 31 ++----------------- .../opsiLicenses/class_opsiLicenseHandler.inc | 4 +-- 2 files changed, 4 insertions(+), 31 deletions(-) diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc index fda4c732c..01e2af031 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseUsage.inc @@ -44,7 +44,7 @@ class licenseUsage extends plugin } // Extract pool name out of the fake dn. -# $this->init(); + $this->init(); } @@ -128,34 +128,7 @@ class licenseUsage extends plugin /* Saves object modifications */ - function save() - { - plugin::save(); - - // Send modify/add events - $mode = "modify"; - if($this->orig_dn == "new"){ - $mode = "add"; - } - - $this->si->createPool($this->cn, $this->description,$this->productIds,$this->softwareIds);# - if($this->si->is_error()){ - msg_dialog::display(_("Error"),msgPool::siError($this->si->get_error()),ERROR_DIALOG); - }else{ - $this->handle_post_events($mode); - } - - // Log action - if($mode == "modify"){ - new log("modify","users/".get_class($this),$this->dn,array_keys($this->attrs),$this->si->get_error()); - }else{ - new log("create","users/".get_class($this),$this->dn,array_keys($this->attrs),$this->si->get_error()); - } - - return 0; - } - - + function save() { } function remove_from_parent(){ return; } diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenseHandler.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenseHandler.inc index 284e80799..3b8554232 100644 --- a/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenseHandler.inc +++ b/gosa-plugins/opsi/admin/opsiLicenses/class_opsiLicenseHandler.inc @@ -221,8 +221,8 @@ class opsiLicenceHandler extends opsi { $data['licensePoolId'] = htmlentities($licensePoolId); } - $res = $this->send_data("gosa_opsi_getSoftwareLicenseUsages_listOfHashes",$this->target,$data,TRUE); - if(isset($res['XML'][0]['ANSWER_OPSI_GETSOFTWARELICENSEUSAGES_LISTOFHASHES'])){ + $res = $this->send_data("gosa_opsi_getSoftwareLicenseUsages",$this->target,$data,TRUE); + if(isset($res['XML'][0]['ANSWER_OPSI_GETSOFTWARELICENSEUSAGES'])){ $items = array(); foreach($res['XML'][0]['RESULT'][0]['HIT'] as $entry){ -- 2.30.2