Closed (fixed)
Project:
Multiple Registration
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Oct 2018 at 13:22 UTC
Updated:
12 Apr 2023 at 13:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kallado commentedComment #3
yoftahe.addweb commented@kallado, Please review the attached patch to resolve this error. I faced it while installing the module. Hope this patch helps you
Thanks!..
Comment #4
kallado commentedThank you @niles.addweb. I always try to avoid using patches in modules because of the issues that a module update can arise if the patch isn't applied. I'm my situation I solved the problem with this function:
I don't know if it's generic enough but works for me.
I'll take a look at the patch as soon as I have time.
kallado
Comment #5
kallado commented@niles.addweb i still get a warning of undefined index in the previous if statement
if (!$element['#required'] && !empty($field_roles_required))because $element['#required'] doesn't exist.
Sorry but I’ve been really busy and didn't have time to look at the patch until now.
kallado
Comment #6
ysamoylenko commentedComment #7
driverok commentedComment #8
driverok commentedComment #9
driverok commentedPlease add a space after if.
Comment #10
ysamoylenko commentedHello everyone.
@kallado, You don't need to add the additional check as you proposed.
We already have this functionality in code:
Where each sub-element e.g. 'value' will be passed as a child and his '#required' state will be changed.
Please review the last patch and check watchdog for 'Notice' messages from the module.
Comment #11
alunyov commented@ysamoylenko,
Please fix typo here:
// issetIf something was selected.Beside that patch works for me fine.
Comment #12
ysamoylenko commentedThank you for reviewing. The patch was updated.
Comment #14
ysamoylenko commentedThe patch was committed.
Comment #15
kallado commented@ysamolyenko @alunyov Thank you guys.
Comment #17
kallado commented