Closed (fixed)
Project:
Commerce Checkout Password
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2015 at 12:59 UTC
Updated:
18 Jan 2016 at 20:08 UTC
Jump to comment: Most recent
Comments
Comment #2
bharat.kelotra commentedThis issue is happening because after user save when the module attempts to login user it checks for timezone of user which is not found in global $user variable so it issues a notice of it.
Passing default time zone to user data before user_save seems to fix the notice.
In function commerce_checkout_password_commerce_checkout_complete in the $fields array pass time zone like
$fields = array(
'name' => $name,
'mail' => $mail,
'init' => $mail,
'pass' => $pass,
'roles' => array(),
'status' => 1,
'timezone' => variable_get('date_default_timezone', @date_default_timezone_get()),
);
this will fix the issue.
Comment #3
cravecode commentedThanks for the more detailed followup @bharat.kelotra. I'll try and get your fix merged in to dev soon.
Comment #5
cravecode commented@bharat.kelotra it looks like that was the issue. Thanks again for the suggested fix. I credited you with the commit.
Comment #6
cravecode commented