[Rt-commit] r13073 - in rt/branches/3.8-TESTING: share/html/Search/Elements

sartak at bestpractical.com sartak at bestpractical.com
Mon Jun 9 16:20:40 EDT 2008


Author: sartak
Date: Mon Jun  9 16:20:30 2008
New Revision: 13073

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/share/html/Search/Elements/PickCFs

Log:
 r61895 at onn:  sartak | 2008-06-09 16:20:09 -0400
 Unescape internal quotes in PickCFs so that a queue with a quote in its name displays its CFs properly. rt3.fsck.com #9574.


Modified: rt/branches/3.8-TESTING/share/html/Search/Elements/PickCFs
==============================================================================
--- rt/branches/3.8-TESTING/share/html/Search/Elements/PickCFs	(original)
+++ rt/branches/3.8-TESTING/share/html/Search/Elements/PickCFs	Mon Jun  9 16:20:30 2008
@@ -58,6 +58,10 @@
         # XXX TODO: This ancient code dates from a former developer
         # we have no idea what it means or why cfqueues are so encoded.
         $id =~ s/^.'*(.*).'*$/$1/;
+
+        # unescape internal quotes
+        $id =~ s/(\\(.))/$2 eq "'" ? "'" : $1/eg;
+
         $queue->Load($id);
     }
     $CustomFields->LimitToQueue($queue->Id);


More information about the Rt-commit mailing list