diff --git a/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc b/gosa-plugins/opsi/admin/opsiLicenses/class_licenseGeneric.inc
index 21f5a3f8d08e43ad04323d3db5d16de44588c8b1..775adf0a6c9cdce1ebf0f58df3e2ecf496877269 100644 (file)
function execute()
{
+ plugin::execute();
// Handle initialization failures.
if(isset($_POST['retry_init'])) $this->init();
if(!$this->init_successfull){
$smarty->assign("boundToHost", $this->boundToHost[0]);
$smarty->assign("licenseKey", $this->licenseKey[0]);
+ // w3c fix, do not show empty options.
+ $tmp = $this->usedByHost;
+ if(isset($tmp[0]) && empty($tmp[0])) unset($tmp[0]);
+ $smarty->assign('usedByHost', $tmp);
+
foreach(array("notificationDate","expirationDate","conclusionDate") as $date) {
$smarty->assign($date."Writeable", $this->acl_is_writeable($date));
}
"plSection" => array("administration"),
"plCategory" => array("opsi"),
"plProvidedAcls"=> array(
- "cn" => _("Name"),
- "description" => _("Description"))
+ "cn" => _("Name"),
+ "partner" => _("Partner"),
+ "licenseKey" => _("License key"),
+ "licenseModel" => _("License model"),
+ "licensePoolId" => _("License pool id"),
+ "maximumInstallations"=> _("Maximum installations"),
+ "boundToHost" => _("Reserved for host"),
+ "usedByHost" => _("Usage"),
+ "notificationDate" => _("Notification date"),
+ "conclusionDate" => _("Conclusion date"),
+ "expirationDate" => _("Expiration date"),
+ "description" => _("Description"))
));
}
}