summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-02-02 05:53:54 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-02-02 05:53:54 +0000
commit830616869e84527032206427c78ceed9cc5de097 (patch)
tree71f7316fc11c91ddfbca1240e70383802f930167 /bin
parentf0229b16c649724c74174a8fb42d14ab05c615a9 (diff)
Cleared bug 1625954
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@789 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rwxr-xr-xbin/aa.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/aa.pl b/bin/aa.pl
index e4f1db70..a9c40750 100755
--- a/bin/aa.pl
+++ b/bin/aa.pl
@@ -717,7 +717,7 @@ sub form_footer {
if ($form->{id}) {
- if ($form->{locked} || $transdate <= $closedto) {
+ if ($form->{locked} || ($transdate && $transdate <= $closedto)) {
for ("post", "print_and_post", "delete") { delete $button{$_} }
}
@@ -730,7 +730,7 @@ sub form_footer {
for ("post_as_new", "print_and_post_as_new", "delete") { delete $button{$_} }
delete $button{"print_and_post"} if ! ${LedgerSMB::Sysconfig::latex};
- if ($transdate <= $closedto) {
+ if ($transdate && $transdate <= $closedto) {
for ("post", "print_and_post") { delete $button{$_} }
}
}