From: lpsolit%gmail.com <> Date: Tue, 18 Aug 2009 15:45:05 +0000 (+0000) Subject: Bug 510944: Sorting bug lists on some fields can fail - Patch by Frédéric Buclin... X-Git-Tag: bugzilla-3.5.1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbfeceeba9f66601ff3145713cbb4050016b4411;p=thirdparty%2Fbugzilla.git Bug 510944: Sorting bug lists on some fields can fail - Patch by Frédéric Buclin r=ghendricks a=LpSolit --- diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index c1bbb74028..938c430cb5 100644 --- a/template/en/default/list/table.html.tmpl +++ b/template/en/default/list/table.html.tmpl @@ -134,7 +134,7 @@ [% 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*|\$)") %]