From a4d47dfe9870499275e95637d316cb8d95c290d3 Mon Sep 17 00:00:00 2001 From: tetragon Date: Fri, 7 Sep 2007 01:54:37 +0000 Subject: Fixing bug 1789749 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1528 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LedgerSMB/Form.pm') diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index 30d848a7..c48f5b68 100755 --- a/LedgerSMB/Form.pm +++ b/LedgerSMB/Form.pm @@ -364,7 +364,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