From: lpsolit%gmail.com <> Date: Tue, 18 Aug 2009 15:47:49 +0000 (+0000) Subject: Bug 510944: Sorting bug lists on some fields can fail - Patch by Frédéric Buclin... X-Git-Tag: bugzilla-3.4.2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0c682724c5158a3bc417b2af0219422721ff7c4;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 6fdc3b84c1..11ec4c5897 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*|\$)") %]