more session related bug fixes
This commit is contained in:
parent
f2cccdff9f
commit
b0ffb721b6
44 changed files with 143 additions and 143 deletions
|
|
@ -123,7 +123,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->profileField("userId") == 1) {
|
||||
if ($session->user->userId == 1) {
|
||||
$session->scratch->set('redirectAfterLogin', $session->url->page('op=checkout'));
|
||||
return WebGUI::Operation::execute('auth');
|
||||
}
|
||||
|
|
@ -204,7 +204,7 @@ sub www_checkoutSubmit {
|
|||
$i18n = WebGUI::International->new($session, 'Commerce');
|
||||
|
||||
# check if user has already logged in
|
||||
if ($session->user->profileField("userId") == 1) {
|
||||
if ($session->user->userId == 1) {
|
||||
$session->scratch->set('redirectAfterLogin', $session->url->page('op=checkout'));
|
||||
return WebGUI::Operation::execute('displayLogin');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue