summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-07 01:54:59 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-07 01:54:59 +0000
commit8bcb51f7f0891fd01a537d6029704fbe7cd908f4 (patch)
treeaeab0e56a88f8609c43e4f39090209e77cbd7252 /LedgerSMB
parent0d779a471c0488b5900d9bf07aec0b7ba419f05d (diff)
Fixing bug 1789749
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1529 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/Form.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index ca2abc6f..920870ca 100644
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -547,7 +547,7 @@ sub sort_columns {
$self->{sort} =~ s/^"*(.*?)"*$/$1/;
if (@columns) {
@columns = grep !/^$self->{sort}$/, @columns;
- if ($self->{sort} !~ /^\d*$/){
+ if ($self->{sort} !~ /^\w*$/){
$self->{sort} = $self->{dbh}->quote_identifier($self->{sort});
}
splice @columns, 0, 0, $self->{sort};