Closed (fixed)
Project:
Office Hours
Version:
8.x-1.7
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jul 2022 at 10:33 UTC
Updated:
2 Feb 2023 at 12:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
johnvComment #3
zenimagine commentedComment #4
johnvComment #5
johnvI tried to solve this, but found no resolution.
Problem is that in this case, two widgets are built, but they are not declared as 'multiple widgets'.
In the course of #2862302: [Season] Add Recurrence Rule for Views (Full)Calendar integration (ISO-8601 or RRULE), it think we will need to fix this, which will also solve this problem.
Comment #7
johnvIn the end, it was very easy.
For the record, and to out my frustration and admiration, please find below my experiences in solving this issue.
In the end, we just need a oneliner '#limit_validation_errors' => [],, as shown below:
This is documented in the function setErrorByName() in FormStateInterface, and apparently this is used by core in order to validate the required status:
Comment #8
johnvSO, I did not need to add a separated validation, as I tried to do below: