Closed (fixed)
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Nov 2022 at 08:46 UTC
Updated:
29 Jul 2024 at 17:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hitchshockComment #3
hitchshockComment #4
hitchshockComment #5
deepalij commentedApplied patch #4 on Drupal 10.1.x-dev
Patch applied cleanly
Able to reproduce the issue
The issue got fixed. "Validation error on collapsed paragraph : This value should not be null." is not appearing after applying the patch and getting a success message.
RTBC+1
Comment #6
deepalij commentedComment #7
neclimdulLooking at the patch, it looks like it filters out all validations from hidden fields. That doesn't seem like a good thing, we should still want validation of hidden fields. If I'm miss-reading it could we can add a comment to the code explaining why its ok to filter them?
Comment #8
hitchshock@neclimdul cuz this is normal Drupal behavior to not validate hidden fields on entity form. You can check this by you self:
- add required field to the node
- hide it on the entity form
- on node save action you should not see the error that field is empty
- when the field is visible you will see an error
This is an expected behavior for UI
Paragraph breaks this logic when it's collapsed. But works well when it's expanded.
So we need to fix UI behaviour for the collapsed paragraph case.
Fix was applied to the field widget, it means that only UI behaviour has been fixed. Which is ok.
Comment #9
monymirza#4 RTBC+1
Comment #10
berdirCommitted, agreed that this makes sense.
Comment #13
kescoto-thinkshout commentedHas anyone else continued to see this issue? We are still encountering this error even though we have the latest version of the module.
Comment #14
meryem dibeI agree, the error is still occurring even with the patch applied, any updates on this case ?
Comment #15
drupalam commentedThis issue should be fixed if you update to version 1.17.