Fields not in specified order after orderFields called
Brought to you by:
tonanbarbarian
Using orderFields api to control order of fields
displayed on rendered form. Fields are always displayed
in DB access order.
Tracked issue down to the following code lines:
function _dbFormParseTemplate(...)
...
foreach (array_keys($this->_fields) as $field)
should be changed to
foreach ($this->_fieldIndex as $field)
This should be changed on lines 3846, 3866, 3895,
This also corrected a problem with the removeField api
where by the field was removed but the label was still
being displayed.
Attaching patch file as well.
Fix to respect order fields array when rendering form