Pieforms attempts to load renderer plugin even when already loaded
Bug #1189823 reported by
Luke Carrier
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Expired
|
Low
|
Unassigned |
Bug Description
This prevents plugins from providing their own form renderers (useful for working around issues like #1181966 -- nested fieldsets are broken).
I've attached a patch to the Pieforms library which changes the behaviour a little bit; if the renderer function already exists, we'll skip the loading process.
Changed in mahara: | |
milestone: | 16.04.1 → 16.10.0 |
Changed in mahara: | |
milestone: | 16.10.0 → 16.10.1 |
Changed in mahara: | |
milestone: | 16.10.1 → 17.04.0 |
no longer affects: | mahara/16.10 |
no longer affects: | mahara/16.04 |
Changed in mahara: | |
assignee: | Aaron Wells (u-aaronw) → nobody |
milestone: | 17.04.0 → none |
To post a comment you must log in.
Cheers Luke,
That patch looks good to me.
Just to confirm, this is to work around issues where you wish to use a function which is defined outside of the pieforms structure and where the function has already been defined. Therefore it is not necessary (or appropriate) to include the file from the pieforms file structure.