From 8bcb51f7f0891fd01a537d6029704fbe7cd908f4 Mon Sep 17 00:00:00 2001 From: tetragon Date: Fri, 7 Sep 2007 01:54:59 +0000 Subject: Fixing bug 1789749 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1529 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LedgerSMB') 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}; -- cgit v1.2.3