Code

Updated terminal/printer
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Oct 2008 09:30:00 +0000 (09:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 23 Oct 2008 09:30:00 +0000 (09:30 +0000)
-Fixed preg_match, parent object detection wasn't working anymore.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12763 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc

index bc8cc7e18d617d5416fd2a4a75d69385ba4af80f..847da3ac38c2218b48fac60250f98d2b84a4b664 100644 (file)
@@ -716,7 +716,7 @@ class printgeneric extends plugin
     /* Update dn, to ensure storing as printer instead of WS / terminal
      */
     if(preg_match("/terminal/i",$this->BelongsTo)){
-      $this->dn= preg_replace("/".normalizePreg(get_ou('terminalRDN')).",/",get_ou('printerRDN'),$this->dn);
+      $this->dn= preg_replace("/".normalizePreg(get_ou('terminalRDN'))."/",get_ou('printerRDN'),$this->dn);
     }
 
     if(preg_match("/workstation/i",$this->BelongsTo)){