From: hickert Date: Thu, 23 Oct 2008 09:30:00 +0000 (+0000) Subject: Updated terminal/printer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=539ff5ccd2478374860a7c62a7e5178fcb0c0dfc;p=gosa.git 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 --- 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)){