summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e7b078)
raw | patch | inline | side by side (parent: 9e7b078)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Mar 2010 09:26:07 +0000 (09:26 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 30 Mar 2010 09:26:07 +0000 (09:26 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17384 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiScript.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiScript.inc b/gosa-plugins/fai/admin/fai/class_faiScript.inc
index eb313dd9680a395cddc490d65df6bf7d606d45db..e29091b92866e03354e2a5501708decc0537f2cf 100644 (file)
$this->ui = get_userinfo();
- $this->scriptListWidget= new sortableListing($this->SubObjects, $this->convertList());
+ $this->scriptListWidget= new sortableListing($this->convertList(TRUE), $this->convertList());
$this->scriptListWidget->setDeleteable(true);
$this->scriptListWidget->setInstantDelete(false);
$this->scriptListWidget->setEditable(true);
$this->scriptListWidget->setHeader(array(_("Name"),_("Description")));
}
- function convertList()
+ function convertList($type = FALSE)
{
$data = array();
foreach($this->SubObjects as $cn => $entry){
if($entry['status'] == "delete") continue;
- $data[$cn] = array('data' => array($entry['cn'], $entry['description']));
+ if($type){
+ $data[$cn] = $entry;
+ }else{
+ $data[$cn] = array('data' => array($entry['cn'], $entry['description']));
+ }
}
return($data);
}
}
}
- /* Save the edited entry */
+
+ /* Save the edited entry */
if(isset($_POST['SaveSubObject'])){
/* Check if there are still errors remaining that must be fixed before saving */
return($display);
}
- $this->scriptListWidget->setListData($this->SubObjects, $this->convertList());
+ $this->scriptListWidget->setListData($this->convertList(TRUE), $this->convertList());
$this->scriptListWidget->update();
$smarty->assign("Entry_divlist",$this->scriptListWidget->render());