dwightwatson / bootstrap-form

Bootstrap 3 form builder for Laravel
MIT License
217 stars 133 forks source link

Undefined index: help_text #57

Closed andycaramba closed 8 years ago

andycaramba commented 8 years ago

Hi. After this commit I have an error Undefined index: help_text in

protected function getHelpText($field, array $options = [])
{
    if (array_key_exists($options['help_text'])) {
        return '<span class="help-block">' . e($options['help_text']) . '</span>';
    }
    ...
andycaramba commented 8 years ago

It should be array_key_exists('help_text', $options) here (link)

dwightwatson commented 8 years ago

Sorry about this and for taking so long to resolve it, was on an international flight. I've just tagged a new version that should fix this. I really need to get the test coverage up.