summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-08-18 17:45:05 +0200
committerlpsolit%gmail.com <>2009-08-18 17:45:05 +0200
commitdbfeceeba9f66601ff3145713cbb4050016b4411 (patch)
tree2ad6eeddbd5fd6bec704311b43807b9c59009d2c /template
parentd747fb6ff7493acf3c60ca71441caa18a31127ee (diff)
downloadbugzilla-dbfeceeba9f66601ff3145713cbb4050016b4411.tar.gz
bugzilla-dbfeceeba9f66601ff3145713cbb4050016b4411.tar.xz
Bug 510944: Sorting bug lists on some fields can fail - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/list/table.html.tmpl2
1 files changed, 1 insertions, 1 deletions
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*|\$)") %]
<a href="buglist.cgi?[% urlquerypart FILTER html %]&amp;order=
[% id FILTER url_quote %][% desc FILTER url_quote %]
[% ",$order" FILTER url_quote IF order %]