fuel/core — Issue #789: Auto id with prefix
Author: sahanz
Created: 2012-01-26 01:07:13+00:00
State: open

Fieldset_Field

if ($form->get_config('auto_id', false) === true and $this->get_attribute('id') == '')

this code overrides auto id addition of Form_Instance.(Form_Instance class code $attributes['id'] = $this->get_config('auto_id_prefix', 'form_').$attributes['name'];) Code in here doesn't add the auto_id_prefix. Since this add an id, instance class ignore auto_id generation (which adds the prefix)