dwightwatson / bootstrap-form

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

Fixing issue with model dumped in form attributes #84

Closed tmaly1980 closed 7 years ago

tmaly1980 commented 7 years ago

If BootstrapForm::open() has both 'model' and 'url' set, it doesn't clear 'model' from the $options hash so the model accidentally gets toString() in the attributes, rather than removed from the $options hash beforehand. This causes a larger issue with HtmlBuilder and a 500 error.

dwightwatson commented 7 years ago

Good find, thank you!