-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save the newest Guest with updated datas #22022
Conversation
Hi, thanks for this contribution! I found some issues with the Pull Request description:
Would you mind having a look at it? This will help us understand how interesting your contribution is, thank you very much! About linked issuesPlease consider opening an issue before submitting a Pull Request:
(Note: this is an automated message, but answering it will reach a real human) |
|
||
// $this is now the old guest but filled with the most up to date values | ||
$this->update(); | ||
$this->force_id = true; | ||
return $this->add(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return $this->add(); | |
try { | |
return $this->add(); | |
} catch (PrestaShopDatabaseException $e) { | |
return false; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not a PrestaShopException instead ?
Or we need to add the return at the end of the method, to get a return by default (true, or false ?)
Co-authored-by: Arman Hosseini <namra.1377@gmail.com>
Hi @Progi1984 , Why is it in "Waiting for author" label ? |
@PrestaEdit Sorry my morning's comment has not be saved 😢 Could you fix PHPCSFixer & Travis, please ? |
In order to avoid primary key duplication
Hi @prestamodule |
Hi, Please, redo your test. This behavior is since the beginning of PrestaShop and the use of the module "statsdatas". You need to open your shop (don't be logged, of course) and so have a guest created. |
Hi @prestamodule Thanks !! |
QA approved, well done! Message to the maintainers: do not forget to milestone it before the merge. |
Contribution merged, congratulations! Would you mind answering our quick 1-minute survey? We would love to hear about your experience so far, it will help us improve our process for the community involved, like you. ;-) |
thank you @prestamodule ! |
This change is