From 277aebf1ad0f383a763fbeaa9d6126d4f9cf6663 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 7 Jan 2010 11:52:36 +0000 Subject: [PATCH] Fixed a couple of returns git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15103 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/server/events/opsi_com.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-si/server/events/opsi_com.pm b/gosa-si/server/events/opsi_com.pm index 926e33d3a..6b9f2b761 100644 --- a/gosa-si/server/events/opsi_com.pm +++ b/gosa-si/server/events/opsi_com.pm @@ -611,7 +611,7 @@ sub opsi_get_product_properties { if (defined $values->{$key}){ $vals= $values->{$key}; } - $item.= "<$key>$dsc".xml_quote($value)."$vals"; + $item.= "<$key>$dsc".xml_quote($value)."$vals"; $item.= ""; $xml_msg=~ s/<\/xxx>/$item<\/xxx>/; } @@ -1422,7 +1422,9 @@ sub opsi_getSoftwareLicenseUsagesForProductId { # Fetch licensePoolId for productId my ($res, $err) = &_getLicensePoolId('productId'=>$productId); if ($err){ - return &_giveErrorFeedback($msg_hash, "cannot fetch licensePoolId for given productId : ".$res, $session_id); + my $out_hash = &create_xml_hash("answer_$header", $main::server_address, $source); + $out_hash->{result} = []; + return ( &create_xml_string($out_hash) ); } my $licensePoolId = $res; # We assume that there is only one pool for each productID!!! -- 2.30.2