- Merge request !2995Issue #3322894: Comment form gives deprecated warnings on PHP 8.1 when comment is empty โ (Closed) created by Juanjol
- First commit to issue fork.
- ๐ธ๐ฐSlovakia coaston
The same issue on 10.1 version. When you click on preview of empty comment also.
- Merge request !5871Issue #3322894: Comment form gives deprecated warnings on PHP 8.1 when comment is empty. โ (Closed) created by Akhil Babu
- ๐ฎ๐ณIndia Akhil Babu Chengannur
Akhil Babu โ changed the visibility of the branch 11.x to hidden.
- Status changed to Needs review
about 1 year ago 7:42am 19 December 2023 - ๐ฎ๐ณIndia Akhil Babu Chengannur
If we use the condition
ff ($comment->hasField('comment_body') && !$comment->comment_body->isEmpty())
, thenif (empty($comment_text)) { $comment->setSubject(NULL); } else { $comment->setSubject(Unicode::truncate(trim(Html::decodeEntities(strip_tags((string) $comment_text))), 29, TRUE, TRUE)); }
part is no longer needed.
Changed the logic as per review comments in 2995 and raised a new MR against 11.x branch
- Status changed to RTBC
about 1 year ago 8:18am 19 December 2023 - ๐ฎ๐ณIndia Sandeep_k New Delhi
Verified and tested patch merge request !5871 on Drupal version- 11.0-dev & PHP version- 8.1.26. The patch was applied successfully and looks good to me.
Testing Steps:
- Enable Comments for the content type.
- Go to the content node & add a blank comment to reproduce. Shared before results
- Download this patch and Apply.
- Reverify this by adding a blank comment on the content node.
Testing Results:
Now the required field is highlighted & a validation message is displayed.Moving this ticket to RTBC.
- last update
about 1 year ago 30,374 pass - last update
about 1 year ago 30,374 pass - last update
about 1 year ago 30,374 pass - last update
about 1 year ago 30,374 pass - last update
about 1 year ago 30,374 pass - last update
about 1 year ago 30,374 pass - Status changed to Needs work
about 1 year ago 6:50am 30 December 2023 - ๐ณ๐ฟNew Zealand quietone
I'm triaging RTBC issues โ . I read the IS and the comments. I didn't find any unanswered questions.
I did find one comment not wrapped correctly, see the MR. Setting to Needs work for that.
Thanks!
- Status changed to Needs review
about 1 year ago 11:09am 3 January 2024 - ๐ฎ๐ณIndia Akhil Babu Chengannur
Thanks for thr reviewing.
I have udated the code comment and modified the test in MR 5871 (11.X branch). - ๐ฎ๐ณIndia Kanchan Bhogade
Hi,
I verified and tested patch MR!5871 on Drupal version- 11.0-dev.
The patch was applied successfully.Testing Steps:
- Enable Comments for the content type.
- Comment Field is not required-> to the content node & add a blank comment and Save.
- Comment Field is Required-> to the content node & add a blank comment and Save.
- Reproduce the issue. and shared before results
- Download this patch and Apply.
- Reverify this by adding a blank comment on the content node with the required field and not required field .
Testing Results:
- For Required field -> Now the required field is highlighted & a validation message is displayed.
- For not required -> comment saved with the "No Subject" without any error message
Screenshots are attached for reference
Re- comment field required
NR- comment field not required - Status changed to RTBC
about 1 year ago 5:47pm 3 January 2024 - ๐บ๐ธUnited States smustgrave
Feedback for wrapping text by @quietone appers to have been addressed.
- last update
about 1 year ago 30,374 pass - last update
about 1 year ago 30,374 pass - last update
about 1 year ago 30,374 pass - Status changed to Needs work
about 1 year ago 3:47pm 15 January 2024 - Status changed to Needs review
about 1 year ago 5:40am 16 January 2024 - Status changed to RTBC
about 1 year ago 6:30pm 22 January 2024 -
larowlan โ
committed 691c493a on 10.2.x
Issue #3322894 by Akhil Babu, Juanjol, micnap, larowlan, quietone, catch...
-
larowlan โ
committed 691c493a on 10.2.x
-
larowlan โ
committed 1ceffc16 on 11.x
Issue #3322894 by Akhil Babu, Juanjol, micnap, larowlan, quietone, catch...
-
larowlan โ
committed 1ceffc16 on 11.x
- ๐ฌ๐งUnited Kingdom alexpott ๐ช๐บ๐
larowlan โ credited alexpott โ .
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Committed to 11.x and backported to 10.2.x
Thanks
- Status changed to Fixed
12 months ago 6:42am 12 February 2024 Automatically closed - issue fixed for 2 weeks with no activity.