summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-table.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-12-05 11:56:13 -0800
committerMark Wells <mark@freeside.biz>2014-12-05 13:19:51 -0800
commitde75ffb000acb9e09518a5eb12b3cbfffa12e814 (patch)
tree26f485832bb04d91f7c768bbcd40ca2bce382a67 /httemplate/elements/select-table.html
parent138fb1483c92e225e89ba4a0848f6cd556a39060 (diff)
correctly sort reason selectors and enforce ACLs, #32521, from #31702
Diffstat (limited to 'httemplate/elements/select-table.html')
-rw-r--r--httemplate/elements/select-table.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html
index e73638801..5f36a36ef 100644
--- a/httemplate/elements/select-table.html
+++ b/httemplate/elements/select-table.html
@@ -89,12 +89,14 @@ Example:
<OPTION VALUE=""><% $opt{'empty_label'} || 'all' %>
% }
-% foreach my $record ( sort { $a->$name_col() cmp $b->$name_col()
-% || $a->$key() <=> $b->$key()
-% }
-% @records
-% )
-% {
+%# foreach my $record ( sort { $a->$name_col() cmp $b->$name_col()
+%# || $a->$key() <=> $b->$key()
+%# }
+%# @records
+%# )
+%# {
+% # show records in query order, or preserve the order they were given
+% foreach my $record (@records) {
% my $recvalue = $record->$key();
% my $selected;
% if ( $opt{'all_selected'} ) {