From dbfeceeba9f66601ff3145713cbb4050016b4411 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 18 Aug 2009 15:45:05 +0000 Subject: Bug 510944: Sorting bug lists on some fields can fail - Patch by Frédéric Buclin r=ghendricks a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/list/table.html.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template') diff --git a/template/en/default/list/table.html.tmpl b/template/en/default/list/table.html.tmpl index c1bbb7402..938c430cb 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*|\$)") %]