Skip to content
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

If user mistakenly attempts to delete a comment, fail gracefully #190

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

matks
Copy link
Contributor

@matks matks commented Nov 16, 2023

Questions Answers
Description? Fixes 2 issues described in PrestaShop/PrestaShop#34512 : missing redirect after successfull deletion of a comment, and missing handling of bad input when delete is called on a comment that does not exist
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#34512
How to test? Please follow the ticket instructions

productcomments.php Outdated Show resolved Hide resolved
Co-authored-by: Nicolas Lœuillet <nicolas@loeuillet.org>
Copy link
Contributor

@leemyongpakvn leemyongpakvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested OK. Indeed, The comment cannot be found to delete 👌

@leemyongpakvn leemyongpakvn added this to the 6.0.3 milestone Nov 17, 2023
@florine2623 florine2623 self-assigned this Nov 17, 2023
Copy link
Contributor

@florine2623 florine2623 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @matks ,

Tested on 1.7.8.x, 8.0.x, 8.1.x and develop.

Works as expected, no more exception.

Screen.Recording.2023-11-17.at.14.27.00.mov

It is QA ✅

@leemyongpakvn leemyongpakvn merged commit 96bc83c into PrestaShop:dev Nov 17, 2023
8 checks passed
@leemyongpakvn
Copy link
Contributor

Thanks @matks and @florine2623

@matks matks deleted the fix-bad-delete branch November 17, 2023 14:05
@florine2623 florine2623 mentioned this pull request Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Fatal error if I delete a reported comment from module productcomments BO page
5 participants