Code

Added self tagging
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 08:15:21 +0000 (08:15 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 11 Nov 2008 08:15:21 +0000 (08:15 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12991 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiHook.inc
gosa-plugins/fai/admin/fai/class_faiPackage.inc
gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
gosa-plugins/fai/admin/fai/class_faiScript.inc
gosa-plugins/fai/admin/fai/class_faiTemplate.inc
gosa-plugins/fai/admin/fai/class_faiVariable.inc

index ec0ccda9ee15d33041c1f328f9d35d68ee06b6ee..b5f99e948e0b0fa8166e8302f4c7927463352975 100644 (file)
@@ -510,7 +510,8 @@ class faiHook extends plugin
       }
 
       /* Tag object */
-      $this->tag_attrs($tmp, $sub_dn, $this->gosaUnitTag);
+      $ui= get_userinfo();
+      $this->tag_attrs($tmp, $sub_dn, $ui->gosaUnitTag);
 
       if($obj['status'] == "delete"){
         FAI::prepare_to_save_FAI_object($sub_dn,array(),true);
index 88806cade7169344b163e7956cc9bfaaf0f9ba71..867f274cbdbb63c07ca3ddf2ac782dc24e40c722 100644 (file)
@@ -549,7 +549,8 @@ class faiPackage extends plugin
         $pkgdn =  "FAIvariable=".$name.",".$this->dn;
 
         /* Tag object */
-        $this->tag_attrs($pkgattrs, $pkgdn, $this->gosaUnitTag);
+       $ui= get_userinfo();
+        $this->tag_attrs($pkgattrs, $pkgdn, $ui->gosaUnitTag);
 
         if(in_array($pkgattrs['FAIvariableType'],array("boolean","multiselect","password","select","string","text"))){
 
index 481430ab53155df0427c66698acf9e09cc179d78..086e42eed5f6e32a069184343da4531b4f16e48a 100644 (file)
@@ -429,7 +429,8 @@ class faiPartitionTable extends plugin
       }
 
       /* Tag object */
-      $this->tag_attrs($disk_attrs, $disk_dn, $this->gosaUnitTag);
+      $ui= get_userinfo();
+      $this->tag_attrs($disk_attrs, $disk_dn, $ui->gosaUnitTag);
 
       if($disk['status'] == "delete"){
         FAI::prepare_to_save_FAI_object($disk_dn,array(),true);
@@ -474,7 +475,8 @@ class faiPartitionTable extends plugin
         }
 
         /* Tag object */
-        $this->tag_attrs($partition_attrs, $partition_dn, $this->gosaUnitTag);
+       $ui= get_userinfo();
+        $this->tag_attrs($partition_attrs, $partition_dn, $ui->gosaUnitTag);
 
         if($partition['status'] == "delete"){
           FAI::prepare_to_save_FAI_object($partition_dn,array(),true);
index f3e4d7a1746d288ac7484439febd3d0d7a141da9..af48105b689bbdfc34368d927ba7e35992c2d188 100644 (file)
@@ -569,7 +569,8 @@ class faiScript extends plugin
       }
 
       /* Tag object */
-      $this->tag_attrs($tmp, $sub_dn, $this->gosaUnitTag);
+      $ui= get_userinfo();
+      $this->tag_attrs($tmp, $sub_dn, $ui->gosaUnitTag);
 
       if($obj['status'] == "delete"){
         FAI::prepare_to_save_FAI_object($sub_dn,array(),true);
index 0f0b30490ecfa09b7e854ea71811bbc95d87c595..76037c63d4334d8ecbbc47eb91b8179dc49c0af1 100644 (file)
@@ -490,7 +490,8 @@ class faiTemplate extends plugin
       }
 
       /* Tag object */
-      $this->tag_attrs($tmp, $sub_dn, $this->gosaUnitTag);
+      $ui= get_userinfo();
+      $this->tag_attrs($tmp, $sub_dn, $ui->gosaUnitTag);
 
       if($obj['status'] == "delete"){
         FAI::prepare_to_save_FAI_object($sub_dn,array(),true);
index 907dbaa4824bc154c35cede05ee9c2a78a419aa7..7347a226456644de8902c2e84907c32c9a3393e9 100644 (file)
@@ -352,7 +352,8 @@ class faiVariable extends plugin
       }
 
       /* Tag object */
-      $this->tag_attrs($tmp, $sub_dn, $this->gosaUnitTag);
+      $ui= get_userinfo();
+      $this->tag_attrs($tmp, $sub_dn, $ui->gosaUnitTag);
       
       if($obj['status'] == "delete"){
         FAI::prepare_to_save_FAI_object($sub_dn,array(),true);