diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-05 17:59:58 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-05 17:59:58 +0000 |
commit | 310f95f24c2a5b67a3cf716449f83c0c9c06cc3d (patch) | |
tree | c959b079bb830b8f5099bcb61430d8d6b51cc817 /LedgerSMB | |
parent | 1480c5142679f85998e857e542c6ac371d2e54c4 (diff) |
Adding an idenFixing ->sort_columns()
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1504 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-x | LedgerSMB/Form.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index a8da9a94..8af13b55 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -363,6 +363,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}; } } |