]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 510944: Sorting bug lists on some fields can fail - Patch by Frédéric Buclin...
authorlpsolit%gmail.com <>
Tue, 18 Aug 2009 15:47:49 +0000 (15:47 +0000)
committerlpsolit%gmail.com <>
Tue, 18 Aug 2009 15:47:49 +0000 (15:47 +0000)
template/en/default/list/table.html.tmpl

index 6fdc3b84c102443e12c28a65a36bfc9a0ea9ce3b..11ec4c589798494df7635d33ba07bf57b887fd8f 100644 (file)
     [% IF (om = order.match("$id( DESC)?")) %]
       [% desc = ' DESC' IF NOT om.0 %]
     [% END %]
-    [% order = order.remove("$id( DESC)?,?") %]
+    [% order = order.remove("\\b$id( DESC)?(,\\s*|\$)") %]
     <a href="buglist.cgi?[% urlquerypart FILTER html %]&amp;order=
       [% id FILTER url_quote %][% desc FILTER url_quote %]
       [% ",$order" FILTER url_quote IF order %]