瀏覽代碼

Fixes #1213: Corrected table header ordering links

Jeremy Stretch 9 年之前
父節點
當前提交
d5587de316
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      netbox/templates/inc/table.html

+ 1 - 1
netbox/templates/inc/table.html

@@ -6,7 +6,7 @@
             <tr>
                 {% for column in table.columns %}
                     {% if column.orderable %}
-                        <th {{ column.attrs.th.as_html }}><a href="{% querystring page=column.order_by_alias.next %}">{{ column.header }}</a></th>
+                        <th {{ column.attrs.th.as_html }}><a href="{% querystring table.prefixed_order_by_field=column.order_by_alias.next %}">{{ column.header }}</a></th>
                     {% else %}
                         <th {{ column.attrs.th.as_html }}>{{ column.header }}</th>
                     {% endif %}