From 539ff5ccd2478374860a7c62a7e5178fcb0c0dfc Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Oct 2008 09:30:00 +0000 Subject: [PATCH] Updated terminal/printer -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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc index bc8cc7e18..847da3ac3 100644 --- a/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc +++ b/gosa-plugins/goto/admin/systems/goto/class_printGeneric.inc @@ -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)){ -- 2.30.2