From 50590978bb87a8d10d8423338bd250ae7bfa5cdc Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 11 Nov 2008 08:15:21 +0000 Subject: [PATCH] Added self tagging 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 | 3 ++- gosa-plugins/fai/admin/fai/class_faiPackage.inc | 3 ++- gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc | 6 ++++-- gosa-plugins/fai/admin/fai/class_faiScript.inc | 3 ++- gosa-plugins/fai/admin/fai/class_faiTemplate.inc | 3 ++- gosa-plugins/fai/admin/fai/class_faiVariable.inc | 3 ++- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiHook.inc b/gosa-plugins/fai/admin/fai/class_faiHook.inc index ec0ccda9e..b5f99e948 100644 --- a/gosa-plugins/fai/admin/fai/class_faiHook.inc +++ b/gosa-plugins/fai/admin/fai/class_faiHook.inc @@ -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); diff --git a/gosa-plugins/fai/admin/fai/class_faiPackage.inc b/gosa-plugins/fai/admin/fai/class_faiPackage.inc index 88806cade..867f274cb 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackage.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackage.inc @@ -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"))){ diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc index 481430ab5..086e42eed 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc @@ -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); diff --git a/gosa-plugins/fai/admin/fai/class_faiScript.inc b/gosa-plugins/fai/admin/fai/class_faiScript.inc index f3e4d7a17..af48105b6 100644 --- a/gosa-plugins/fai/admin/fai/class_faiScript.inc +++ b/gosa-plugins/fai/admin/fai/class_faiScript.inc @@ -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); diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc index 0f0b30490..76037c63d 100644 --- a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc +++ b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc @@ -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); diff --git a/gosa-plugins/fai/admin/fai/class_faiVariable.inc b/gosa-plugins/fai/admin/fai/class_faiVariable.inc index 907dbaa48..7347a2264 100644 --- a/gosa-plugins/fai/admin/fai/class_faiVariable.inc +++ b/gosa-plugins/fai/admin/fai/class_faiVariable.inc @@ -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); -- 2.30.2