summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-15 23:26:20 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-10-15 23:26:20 +0000
commit86a108e83717158ffeaebb9ce41d9dd9033eaf15 (patch)
tree98853f398e8162e19076b829a19f4dd7bd183252
parent8e3c511e2a236fbec3853d20ed7d619b882514e7 (diff)
Form update for get_name
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1765 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/Form.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 6dac3922..e5a8c9e4 100644
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -1674,7 +1674,7 @@ sub get_name {
$where
ORDER BY e.name|;
- unshift( @queryargs, $name, $name, $table );
+ unshift( @queryargs, $name, $self->like($self->{"${table}number"}) );
my $sth = $self->{dbh}->prepare($query);
$sth->execute(@queryargs) || $self->dberror($query);