diff --git a/CHANGELOG.md b/CHANGELOG.md index 4da82b473c..a30bc4f58e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Draft +- Adding missing product reviews form validation [#2475](https://github.com/bigcommerce/cornerstone/pull/2475) - Fix GH build action & added package version and short commit hash to artifact names in GitHub Actions workflow for improved traceability and uniqueness. ([#2494](https://github.com/bigcommerce/cornerstone/pull/2494)) - Bump stencil-utils to 6.18.0 ([#2493](https://github.com/bigcommerce/cornerstone/pull/2493)) - Bump other GH actions to fix warnings related to old versions. ([#2495](https://github.com/bigcommerce/cornerstone/pull/2495)) diff --git a/assets/js/theme/product/reviews.js b/assets/js/theme/product/reviews.js index b073193c63..22ef11d1d2 100644 --- a/assets/js/theme/product/reviews.js +++ b/assets/js/theme/product/reviews.js @@ -89,6 +89,10 @@ export default class { selector: '[name="revtitle"]', validate: 'presence', errorMessage: safeString(this.context.reviewSubject), + }, { + selector: '[name="revfromname"]', + validate: 'presence', + errorMessage: safeString(this.context.reviewName), }, { selector: '[name="revtext"]', validate: 'presence', diff --git a/lang/en.json b/lang/en.json index 5e5d0af058..da3e5a4c47 100755 --- a/lang/en.json +++ b/lang/en.json @@ -710,6 +710,7 @@ "reviews": { "rating": "The 'Rating' field cannot be blank.", "title": "The 'Review Subject' field cannot be blank.", + "name": "The 'Name' field cannot be blank.", "comment": "The 'Comments' field cannot be blank." } } diff --git a/templates/components/products/modals/writeReview.html b/templates/components/products/modals/writeReview.html index 8f428d662c..eaf99fffe5 100644 --- a/templates/components/products/modals/writeReview.html +++ b/templates/components/products/modals/writeReview.html @@ -1,6 +1,7 @@