-
Notifications
You must be signed in to change notification settings - Fork 93
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
Release 5.0.1 #135
Release 5.0.1 #135
Conversation
Progi1984
commented
Feb 10, 2022
Questions | Answers |
---|---|
Description? | Release 5.0.1 |
Type? | improvement |
BC breaks? | no |
Deprecations? | no |
Fixed ticket? | N/A |
How to test? | Launch a release test |
…tead of using customer_name
Co-authored-by: Simon G. <49909275+SimonGrn@users.noreply.github.com>
Co-authored-by: Simon G. <49909275+SimonGrn@users.noreply.github.com>
Bumps [prestashop/php-dev-tools](https://github.com/PrestaShop/php-dev-tools) from 3.16.0 to 3.16.1. - [Release notes](https://github.com/PrestaShop/php-dev-tools/releases) - [Commits](PrestaShop/php-dev-tools@v3.16.0...v3.16.1) --- updated-dependencies: - dependency-name: prestashop/php-dev-tools dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
…ashop/php-dev-tools-3.16.1 Bump prestashop/php-dev-tools from 3.16.0 to 3.16.1
install version Good version
Fix js error since displayGDPRConsent
cs fixer cs fix
switch from deprecated 'header' hook to 'displayHeader'
Missing changes for displayHeader hook
Improved Workflow Build Release
Remove unused dependencies
To prevent google from indexing the icon names use data-icon and css to show the icons
Co-authored-by: GoT <PierreRambaud@users.noreply.github.com>
Fix upgrade module to v4
Customer anonymisation if reviews coming from version 3
Align rating to the left on product list
Improved Github Action (Support PHP 5.6 => 8.1)
TypeError on addCommentGrades in case of empty request
Renders author name with a link if it is a customer
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.
Only a few minor typos to fix
@@ -31,7 +31,7 @@ public function display() | |||
{ | |||
$idProduct = (int) Tools::getValue('id_product'); | |||
$page = (int) Tools::getValue('page', 1); | |||
$isLastNameAnynomus = Configuration::get('PRODUCT_COMMENTS_ANONYMISATION'); | |||
$isLastNameAnonymous = Configuration::get('PRODUCT_COMMENTS_ANONYMISATION'); |
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.
$isLastNameAnonymous = Configuration::get('PRODUCT_COMMENTS_ANONYMISATION'); | |
$isLastNameAnonymous = (bool) Configuration::get('PRODUCT_COMMENTS_ANONYMISATION'); |
@@ -181,4 +183,31 @@ private function validateComment(ProductComment $productComment) | |||
|
|||
return $errors; | |||
} | |||
|
|||
/** | |||
* Valdiate criterions values |
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.
* Valdiate criterions values | |
* Validate criterion values |
* | ||
* @todo manage validation for criterion restricted on categories or products | ||
* | ||
* @param array $criterions |
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.
The plural form of "criterion" is "criteria", not "criterions"
'viewcustomer' => 1, | ||
]); | ||
|
||
return '<a href="' . $linkToCustomerProfile . '">' . $value . '</a>'; |
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.
Usually HTML escaping should be done here, not in the controller. But I understand changes should match legacy code.
Unfortunately, this is a release pull request, changes need to be applied in different pull request to update the dev branch :) |
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.
Hello @Progi1984 ,
Thanks for the PR. Looking good to me, it is QA ✅
Thanks @florine2623 |