From 931808af9d6af09be9de7b39a32ef63bc72bf6f9 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 30 Mar 2010 09:44:02 +0000 Subject: [PATCH] Updated FAI entry listing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17386 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiScript.inc | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiScript.inc b/gosa-plugins/fai/admin/fai/class_faiScript.inc index e29091b92..a20ca37ef 100644 --- a/gosa-plugins/fai/admin/fai/class_faiScript.inc +++ b/gosa-plugins/fai/admin/fai/class_faiScript.inc @@ -77,13 +77,14 @@ class faiScript extends plugin $this->scriptListWidget->setInstantDelete(false); $this->scriptListWidget->setEditable(true); $this->scriptListWidget->setWidth("100%"); - $this->scriptListWidget->setHeight("70px"); + $this->scriptListWidget->setHeight("140px"); $this->scriptListWidget->setHeader(array(_("Name"),_("Description"))); } function convertList($type = FALSE) { $data = array(); + $s_acl = $this->ui->get_permissions($this->dn,"fai/faiScriptEntry","FAIscript"); foreach($this->SubObjects as $cn => $entry){ if($entry['status'] == "delete") continue; if($type){ @@ -169,18 +170,6 @@ class faiScript extends plugin set_object_info($this->dn); } - /* Handle posts */ - $s_action = $s_entry = ""; - foreach($_POST as $name => $value){ - if(preg_match("/^download_/",$name)){ - $s_entry = postDecode(preg_replace("/^download_/","",$name)); - $obj = $this->SubObjects[$s_entry]; - $obj = $this->get_object_attributes($obj,$this->sub_Load_Later); - send_binary_content(stripslashes($obj['FAIscript']),$obj['cn'].".FAIscript"); - break; - } - } - $this->scriptListWidget->setAcl($this->getacl("")); $this->scriptListWidget->save_object(); $action = $this->scriptListWidget->getAction(); -- 2.30.2