summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-17 00:28:55 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-17 00:28:55 +0000
commitf670f02b5564a12a7eb2e45a5754db590c454559 (patch)
tree6d2e9ec6a492100afa646c3d1f3dc09016123efc
parent2304e82782558bf1a894b1eb298bd518d30cdac5 (diff)
Fixing closedto setting self to 0 (bug 1755145)
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1410 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--LedgerSMB/AM.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm
index 09de5f6b..cb710b15 100644
--- a/LedgerSMB/AM.pm
+++ b/LedgerSMB/AM.pm
@@ -1698,6 +1698,7 @@ sub closebooks {
else {
$val = 0;
}
+ $val = undef if ($_ == 'closedto' and $val = 0);
$sth->execute( $val, $_ );
}