Code

Apply patch for #3106
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Sep 2010 08:36:00 +0000 (08:36 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 7 Sep 2010 08:36:00 +0000 (08:36 +0000)
Fixed problem with wrong display of entries with special
characters in the C&P dialog, by filtering DNs with the LDAP::fix
function

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@19540 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-core/include/class_CopyPasteHandler.inc

index ee772bb300afcc345fba4ed46facca515865fde1..bc3a2ad4b3eaf83ce8e46aeb66c65e52a2f6e2ba 100644 (file)
@@ -383,7 +383,7 @@ class CopyPasteHandler {
       $smarty->assign("Complete",false);
       $smarty->assign("AttributesToFix","&nbsp;");
       $smarty->assign("SubDialog","");
-      $smarty->assign("message"  , sprintf(_("These objects will be pasted: %s"), "<br>".msgPool::buildList($dns)));
+      $smarty->assign("message"  , sprintf(_("These objects will be pasted: %s"), "<br>".msgPool::buildList(LDAP::fix($dns))));
       return($smarty->fetch(get_template_path("copyPasteDialog.tpl",FALSE)));
     }
 
@@ -407,7 +407,7 @@ class CopyPasteHandler {
         $smarty->assign("AttributesToFix",$this->generateAttributesToFix());
         $smarty->assign("SubDialog",$this->current['object']->SubDialog);
         $smarty->assign("objectDN",$this->current['source_data']['dn']);
-        $smarty->assign("message", sprintf(_("This object will be pasted: %s"), "<br><br>".$this->current['source_data']['dn']));
+        $smarty->assign("message", sprintf(_("This object will be pasted: %s"), "<br><br>".LDAP::fix($this->current['source_data']['dn'])));
         return($smarty->fetch(get_template_path("copyPasteDialog.tpl",FALSE)));
       }
     }