summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 10ef2fd)
raw | patch | inline | side by side (parent: 10ef2fd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Apr 2008 12:40:28 +0000 (12:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 25 Apr 2008 12:40:28 +0000 (12:40 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10693 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 9dba9738c1dd14d3bc98d9f27bc308c99a8e50af..2b1e2d2570f18fd42de5c0584ef5dfbdcbddf7a3 100644 (file)
if(isset($br[$bb]) && $this->acl_is_removeable()){
$name = $br[$bb];
+
+ echo $bb." <br>";
+ echo $name." <br>";
+
$ldap->cd($bb);
$ldap->recursive_remove();
$ldap->cd(preg_replace('/,'.normalizePreg(get_ou('faiou')).'/', ','.get_ou('applicationou'), $bb));
$this->postremove();
new log("remove","fai/".get_class($this),$br[$bb],array(),"Release removed");
- trigger_error("Should be removed");
- }else{
- if(!isset($br[$bb])){
- trigger_error("Invalid release ".$bb);
- }
- if(!$this->acl_is_removeable()){
- trigger_error("Invalid permission");
- }
}
- }else{
- trigger_error("No remove Hook");
}
}
ksort($ret);
$ret = array_flip($ret);
- /* Ensure that we have a valid release selected */
- if(!isset($ret[$this->fai_release])){
- $this->fai_release = $this->fai_base;
- }
-
return ($ret);
}
/* Get posted release */
$r_releases = array_flip($this->getBranches());
if(isset($_POST['fai_release']) && isset($r_releases[get_post('fai_release')])){
- $this->fai_release = $r_releases[get_post('fai_release')];
+
+ /* Ensure that we have a valid release selected */
+ if(!isset($r_releases[get_post('fai_release')])){
+ msg_dialog::display(_("Warning"),_("The selected release is not available anymore. All triggered actions are skipped."));
+ $_POST = array();
+ $plug =$_GET['plug'];
+ $_GET = array("plug" => $plug);
+ $this->fai_release = $this->fai_base;
+ }else{
+ $this->fai_release = $r_releases[get_post('fai_release')];
+ }
$fai_filter = session::get("fai_filter");
$fai_filter['fai_release'] = $this->fai_release;