]> 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:45:05 +0000 (15:45 +0000)
committerlpsolit%gmail.com <>
Tue, 18 Aug 2009 15:45:05 +0000 (15:45 +0000)
template/en/default/list/table.html.tmpl

index c1bbb74028e9ea06484dc332ae63e1156b0e38d9..938c430cb5712b5b2a3350f6ca84fe42302cff80 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 %]