Code

Added lock message for edited FAI dialogs
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Dec 2005 11:39:45 +0000 (11:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Dec 2005 11:39:45 +0000 (11:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2176 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiManagement.inc

index a1b86f8efe007188b23922cb545cc3382a94936f..5ec39d073f49be4a554c5b3b6a710bb67c0cea45 100644 (file)
@@ -263,6 +263,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);
@@ -353,6 +354,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 +368,7 @@ class faiManagement extends plugin
                                        print_red($msg);
                                }
                        }else{
+                               del_lock ($this->dn);
                                $this->dialog->save();
                                unset($this->dialog);
                                $this->dialog=NULL;