]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 470214: Query sorting by multiple columns sometimes loses a column
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 4 Feb 2010 22:29:31 +0000 (23:29 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 4 Feb 2010 22:29:31 +0000 (23:29 +0100)
r=ghendricks a=LpSolit

template/en/default/list/table.html.tmpl

index 11ec4c589798494df7635d33ba07bf57b887fd8f..fcbba3ab17e45d3604b49fa3d336d10c05f79527 100644 (file)
     [% IF (om = order.match("$id( DESC)?")) %]
       [% desc = ' DESC' IF NOT om.0 %]
     [% END %]
-    [% 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 %]
+      [% ',' _ order.remove("\\b$id( DESC)?(,\\s*|\$)") FILTER url_quote IF order %]
       [%-#%]&amp;query_based_on=
       [% defaultsavename OR searchname FILTER url_quote %]">
         [%- abbrev.$id.title || field_descs.$id || column.title -%]</a>