You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$jform->load(<<<'XML'<form><fields name="A"> <field name="fieldab"/></fields></form>XML
,true); // should add a new <field name="fieldab"/> element to the <fields name="A"> element, instead deletes the whole original <fields name="A"> element and adds the <field> at the "top" level.
print $jform->getxml()->asXML();
David
Expected result
See commented code above
Actual result
See commented code above
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered:
But...., the given code won't execute from outside JForm as findField is a protected method. Using getField will still return false because field setup fails at libraries/joomla/form/form.php:1823 as libraries/joomla/form/field.php:557 returns false.
Steps to reproduce the issue
The
loop within findField should have the loop variable renamed to (eg) $el, otherwise it can end up being returned as the function return value.
Eg for
And then for
David
Expected result
See commented code above
Actual result
See commented code above
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: