diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-01-29 18:26:43 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-01-29 18:26:43 -0800 |
commit | 5d089cbe4980f7c9c25b83e164099b22bc59eead (patch) | |
tree | 9c1668cb5003e706b7f2f61ab8c54c9795576572 /httemplate/elements/select-table.html | |
parent | 9db332d80967969856c5b5fe8b6ac91304734b04 (diff) |
Use any card on file when making a payment, RT#23741
Diffstat (limited to 'httemplate/elements/select-table.html')
-rw-r--r-- | httemplate/elements/select-table.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/elements/select-table.html b/httemplate/elements/select-table.html index 0b04fee6e..4b6ddb40e 100644 --- a/httemplate/elements/select-table.html +++ b/httemplate/elements/select-table.html @@ -28,6 +28,7 @@ Example: 'agent_null_right' => '', #right to see un-agented entries #or 'records' => \@records, #instead of search params + 'presorted' => 0, #set true to disable sorting the records on name_col #instead of the primary key... only for special cases 'value_col' => 'columnname', @@ -176,8 +177,9 @@ if ( $opt{'agent_virt'} ) { my @records = (); if ( $opt{'records'} ) { - @records = sort { $a->get($name_col) cmp $b->get($name_col) } - @{ $opt{'records'} }; + @records = @{ $opt{'records'} }; + @records = sort { $a->get($name_col) cmp $b->get($name_col) } @records + unless $opt{'presorted'}; } else { @records = qsearch( { 'table' => $opt{'table'}, |