diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-12 07:11:59 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-11-12 07:11:59 +0000 |
commit | c569e60bf34de095fec410d9239260ed344e40d9 (patch) | |
tree | d5dc740e3691a9221bda8e1c30cda44839ddd687 | |
parent | 7578960f91c2385b07a44e051d5d79b72e1e38c9 (diff) |
Fixed 2 bugs: import text not working with alphanumeric partnumbers and commit ineffective in IR::retrieve_item
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@525 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | LedgerSMB/IR.pm | 2 | ||||
-rwxr-xr-x | bin/ir.pl | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm index c3766227..d5b38bda 100755 --- a/LedgerSMB/IR.pm +++ b/LedgerSMB/IR.pm @@ -1214,8 +1214,6 @@ sub retrieve_item { $where .= " ORDER BY 2"; } - # connect to database - my $dbh = $form->dbconnect($myconfig); my $query = qq| SELECT p.id, p.partnumber, p.description, @@ -635,7 +635,7 @@ sub import_text { my @i_lines = split(/(\n|\r|\r\n)/, $form->{import_text}); foreach $i (@i_lines){ chomp($i); - if ($i != ""){ # Strip out blank lines + if ($i ne ""){ # Strip out blank lines push @o_list, $i; } } |