Code

Fixed object tagging for PHP4
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Jun 2006 10:45:59 +0000 (10:45 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Jun 2006 10:45:59 +0000 (10:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3653 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/tabs_application.inc
plugins/admin/groups/tabs_group.inc
plugins/admin/ogroups/tabs_ogroups.inc
plugins/admin/systems/tabs_component.inc
plugins/admin/systems/tabs_phone.inc
plugins/admin/systems/tabs_printers.inc
plugins/admin/systems/tabs_server.inc
plugins/admin/systems/tabs_terminal.inc
plugins/admin/systems/tabs_winstation.inc
plugins/admin/systems/tabs_workstation.inc

index 4d8eb2824acc76babc9a5aefb3f47946463b7914..203cd69bf9fa4369def2fd533d1772365148948d 100644 (file)
@@ -50,6 +50,7 @@ class apptabs extends tabs
     tabs::save();
 
     /* Fix tagging if needed */
+    $baseobject->dn= $this->dn;
     $baseobject->handle_object_tagging();
   }
 
index e454339422e9676c75696e1b83f6822e8f397a47..a4d0279dbd444368a4ab094b919d4a982f394eea 100644 (file)
@@ -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;
index 5083c634246c6b8c38bf86d2d20273d2b21d8ae5..d39e9d3bae2d35766f5832522dc6d191f6e4efad 100644 (file)
@@ -244,6 +244,7 @@ class ogrouptabs extends tabs
     tabs::save();
 
     /* Fix tagging if needed */
+               $baseobject->dn= $new_dn;
     $baseobject->handle_object_tagging();
   }
 
index 597eadfbe09807b7de63bfd038df229a2d34c57d..60facee5a7c6ea884f29804a158571db2f7f4958 100644 (file)
@@ -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;
index 742e2a0017eb822ce47b973f91a4d55efbbc44ed..cae0a24934acfdad42b01080229207c6c1b2c2cf 100644 (file)
@@ -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;
index 2fe1c65db90bc5a40f52a5816ce33ec71af6b6c7..0fbbccc222005f837dc571db50c45f4bc3d6652d 100644 (file)
@@ -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;
index 9c87c84f2819b49daefb49c256a322e5b897e7d5..037aa850199ef91f1d45d9ecfe5ce965bc37968a 100644 (file)
@@ -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;
index 59f5dad25e84391ecf0234641a4034551f6d1667..2bc8db0bfd1f2d5282620010bf0264abdd3a1511 100644 (file)
@@ -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;
index fdcb6e4e6c9359dcc942788a4fa8b5e183027845..b1b144b4dc7caf4537d1e0dfcad509fb6f1d6c61 100644 (file)
@@ -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;
index 4afdf8333840e5ed56a086f922ff74a80e8e2b58..96a1ce69da01461287ff3954bf7999afe7c47339 100644 (file)
@@ -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;