From d2cbbef381bcb72aa4a9d72ce0043dde9940a420 Mon Sep 17 00:00:00 2001 From: Roy Johnson Date: Wed, 21 Jun 2006 21:25:51 +0000 Subject: [PATCH] fix - Payment in commerce system --- docs/changelog/6.x.x.txt | 1 + lib/WebGUI/Commerce/Payment/Cash.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index a1f63650e..91ff05258 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -10,6 +10,7 @@ - fix: Problems with page.isSibling and page.inBranch - Added new EMS event approval states - Fix: 6.99.2-6.99.3 upgrade fails if spectre.conf doesn't exist + - fix: Payment in commerce system 6.99.4 - fix: better checking of selected template type diff --git a/lib/WebGUI/Commerce/Payment/Cash.pm b/lib/WebGUI/Commerce/Payment/Cash.pm index 8d2a33d33..6daa8b828 100644 --- a/lib/WebGUI/Commerce/Payment/Cash.pm +++ b/lib/WebGUI/Commerce/Payment/Cash.pm @@ -127,7 +127,7 @@ sub configurationForm { $f->yesNo( -name => $self->prepend('completeTransaction'), - -value => $self->get('completeTransaction') || 1, + -value => ($self->get('completeTransaction') eq "0" ? 0 : $self->get('completeTransaction') || 1), -label => $i18n->get('complete transaction'), -hoverHelp => $i18n->get('complete transaction description'), );