== 1 fixes
This commit is contained in:
parent
a3da513ea0
commit
404e0d5d4b
1 changed files with 2 additions and 2 deletions
|
|
@ -243,7 +243,7 @@ sub www_checkoutConfirm {
|
|||
$i18n = WebGUI::International->new($session, 'Commerce');
|
||||
|
||||
# If the user isn't logged in yet, let him do so or have him create an account
|
||||
if ($session->user->userId == 1) {
|
||||
if ($session->user->userId eq '1') {
|
||||
$session->scratch->set('redirectAfterLogin', $session->url->page('op=checkout'));
|
||||
return WebGUI::Operation::execute($session,'auth');
|
||||
}
|
||||
|
|
@ -343,7 +343,7 @@ sub www_checkoutSubmit {
|
|||
$i18n = WebGUI::International->new($session, 'Commerce');
|
||||
|
||||
# check if user has already logged in
|
||||
if ($session->user->userId == 1) {
|
||||
if ($session->user->userId eq '1') {
|
||||
$session->scratch->set('redirectAfterLogin', $session->url->page('op=checkout'));
|
||||
return WebGUI::Operation::execute($session,'displayLogin');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue