From ab261854b79dabbfc05a6cb248622a727772e899 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 6 Jun 2006 10:50:10 +0000 Subject: [PATCH] Fixed tagging for PHP4 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@3654 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/applications/tabs_application.inc | 1 + plugins/admin/groups/tabs_group.inc | 1 + plugins/admin/ogroups/tabs_ogroups.inc | 1 + plugins/admin/systems/tabs_component.inc | 1 + plugins/admin/systems/tabs_phone.inc | 1 + plugins/admin/systems/tabs_printers.inc | 1 + plugins/admin/systems/tabs_server.inc | 1 + plugins/admin/systems/tabs_terminal.inc | 1 + plugins/admin/systems/tabs_winstation.inc | 1 + plugins/admin/systems/tabs_workstation.inc | 1 + 10 files changed, 10 insertions(+) diff --git a/plugins/admin/applications/tabs_application.inc b/plugins/admin/applications/tabs_application.inc index 4d8eb2824..203cd69bf 100644 --- a/plugins/admin/applications/tabs_application.inc +++ b/plugins/admin/applications/tabs_application.inc @@ -50,6 +50,7 @@ class apptabs extends tabs tabs::save(); /* Fix tagging if needed */ + $baseobject->dn= $this->dn; $baseobject->handle_object_tagging(); } diff --git a/plugins/admin/groups/tabs_group.inc b/plugins/admin/groups/tabs_group.inc index e45433942..a4d0279db 100644 --- a/plugins/admin/groups/tabs_group.inc +++ b/plugins/admin/groups/tabs_group.inc @@ -68,6 +68,7 @@ class grouptabs extends tabs $ret= tabs::save(); /* Fix tagging if needed */ + $baseobject->dn= $new_dn; $baseobject->handle_object_tagging(); return $ret; diff --git a/plugins/admin/ogroups/tabs_ogroups.inc b/plugins/admin/ogroups/tabs_ogroups.inc index 5083c6342..d39e9d3ba 100644 --- a/plugins/admin/ogroups/tabs_ogroups.inc +++ b/plugins/admin/ogroups/tabs_ogroups.inc @@ -244,6 +244,7 @@ class ogrouptabs extends tabs tabs::save(); /* Fix tagging if needed */ + $baseobject->dn= $new_dn; $baseobject->handle_object_tagging(); } diff --git a/plugins/admin/systems/tabs_component.inc b/plugins/admin/systems/tabs_component.inc index 597eadfbe..60facee5a 100644 --- a/plugins/admin/systems/tabs_component.inc +++ b/plugins/admin/systems/tabs_component.inc @@ -20,6 +20,7 @@ class componenttabs extends tabs 'dn' to all plugins */ $baseobject= $this->by_object['componentgeneric']; $this->dn= "cn=$baseobject->cn,ou=netdevices,ou=systems,".$baseobject->base; + $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; diff --git a/plugins/admin/systems/tabs_phone.inc b/plugins/admin/systems/tabs_phone.inc index 742e2a001..cae0a2493 100644 --- a/plugins/admin/systems/tabs_phone.inc +++ b/plugins/admin/systems/tabs_phone.inc @@ -20,6 +20,7 @@ class phonetabs extends tabs 'dn' to all plugins */ $baseobject= $this->by_object['phonegeneric']; $this->dn= "cn=$baseobject->cn,ou=phones,ou=systems,".$baseobject->base; + $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; diff --git a/plugins/admin/systems/tabs_printers.inc b/plugins/admin/systems/tabs_printers.inc index 2fe1c65db..0fbbccc22 100644 --- a/plugins/admin/systems/tabs_printers.inc +++ b/plugins/admin/systems/tabs_printers.inc @@ -38,6 +38,7 @@ class printtabs extends tabs 'dn' to all plugins */ $baseobject= $this->by_object['printgeneric']; $this->dn= "cn=$baseobject->cn,ou=printers,ou=systems,".$baseobject->base; + $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; diff --git a/plugins/admin/systems/tabs_server.inc b/plugins/admin/systems/tabs_server.inc index 9c87c84f2..037aa8501 100644 --- a/plugins/admin/systems/tabs_server.inc +++ b/plugins/admin/systems/tabs_server.inc @@ -20,6 +20,7 @@ class servtabs extends tabs 'dn' to all plugins */ $baseobject= $this->by_object['servgeneric']; $this->dn= "cn=$baseobject->cn,ou=servers,ou=systems,".$baseobject->base; + $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; diff --git a/plugins/admin/systems/tabs_terminal.inc b/plugins/admin/systems/tabs_terminal.inc index 59f5dad25..2bc8db0bf 100644 --- a/plugins/admin/systems/tabs_terminal.inc +++ b/plugins/admin/systems/tabs_terminal.inc @@ -42,6 +42,7 @@ class termtabs extends tabs 'dn' to all plugins */ $baseobject= $this->by_object['termgeneric']; $this->dn= "cn=".$baseobject->cn.",ou=terminals,ou=systems,".$baseobject->base; + $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; diff --git a/plugins/admin/systems/tabs_winstation.inc b/plugins/admin/systems/tabs_winstation.inc index fdcb6e4e6..b1b144b4d 100644 --- a/plugins/admin/systems/tabs_winstation.inc +++ b/plugins/admin/systems/tabs_winstation.inc @@ -20,6 +20,7 @@ class wintabs extends tabs 'dn' to all plugins */ $baseobject= $this->by_object['wingeneric']; $this->dn= "cn=$baseobject->cn,ou=winstations,ou=systems,".$baseobject->base; + $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; diff --git a/plugins/admin/systems/tabs_workstation.inc b/plugins/admin/systems/tabs_workstation.inc index 4afdf8333..96a1ce69d 100644 --- a/plugins/admin/systems/tabs_workstation.inc +++ b/plugins/admin/systems/tabs_workstation.inc @@ -38,6 +38,7 @@ class worktabs extends tabs 'dn' to all plugins */ $baseobject= $this->by_object['workgeneric']; $this->dn= "cn=".$baseobject->cn.",ou=workstations,ou=systems,".$baseobject->base; + $baseobject->dn= $this->dn; foreach ($this->by_object as $key => $obj){ $this->by_object[$key]->dn= $this->dn; -- 2.30.2