X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Ffai%2Fclass_faiManagement.inc;h=55e8499b1ef067f51692e48c21cb6685af0ca6ba;hb=8e89e901eb67f63011a49553de75353330a3871e;hp=9d11242dc68952db729452bc3f9876000de32431;hpb=bf70914688502c7abee5f0625158d6a47b37de96;p=gosa.git diff --git a/plugins/admin/fai/class_faiManagement.inc b/plugins/admin/fai/class_faiManagement.inc index 9d11242dc..55e8499b1 100644 --- a/plugins/admin/fai/class_faiManagement.inc +++ b/plugins/admin/fai/class_faiManagement.inc @@ -25,7 +25,6 @@ require "tabsScript.inc"; require "tabsProfile.inc"; require "tabsPackage.inc"; - class faiManagement extends plugin { /* Definitions */ @@ -263,6 +262,7 @@ class faiManagement extends plugin $a_setup = ($this->get_type($entry)); $this->dn = $entry['dn']; + add_lock ($this->dn, $this->ui->dn); $this->dialog= new $a_setup[0]($this->config, $this->config->data['TABS'][$a_setup[2]],$this->dn); @@ -337,7 +337,7 @@ class faiManagement extends plugin } /* Department select */ - if(isset($_POST['base'])){ + if((isset($_POST['base']))&&($s_action=="")){ $faifilter['base']=$_POST['base']; } @@ -353,6 +353,7 @@ class faiManagement extends plugin $this->dialog=NULL; $this->is_dialog = false; unset($_SESSION['objectinfo']); + del_lock ($this->dn); } /* This check if the given tab could be saved @@ -366,6 +367,7 @@ class faiManagement extends plugin print_red($msg); } }else{ + del_lock ($this->dn); $this->dialog->save(); unset($this->dialog); $this->dialog=NULL; @@ -387,14 +389,14 @@ class faiManagement extends plugin }elseif(((isset($this->dialog->current))&&(!$this->dialog->by_object[$this->dialog->current]->is_dialog))){ $display.= "
\n"; - $display.= "\n"; + $display.= "\n"; $display.= " \n"; - $display.= "\n"; + $display.= "\n"; $display.= "
"; }elseif(!isset($this->dialog->current)){ $display.= "\n"; - $display.= " "; - $display.= "\n"; + $display.= " "; + $display.= "\n"; $display.= "
"; } return($display); @@ -410,7 +412,7 @@ class faiManagement extends plugin $options= ""; foreach ($this->config->idepartments as $key => $value){ if ($faifilter['base'] == $key){ - $options.= ""; + $options.= ""; } else { $options.= ""; } @@ -422,44 +424,44 @@ class faiManagement extends plugin $faihead = "