diff options
Diffstat (limited to 'LedgerSMB/Form.pm')
-rw-r--r-- | LedgerSMB/Form.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index dcdca9a6..723e86bf 100644 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -546,6 +546,9 @@ sub sort_columns { if ( $self->{sort} ) { if (@columns) { @columns = grep !/^$self->{sort}$/, @columns; + if ($self->{sort} !~ /^\d*$/){ + $self->{sort} = $self->{dbh}->quote_identifier($self->{sort}); + } splice @columns, 0, 0, $self->{sort}; } } |