Emagister / zend-form-decorators-bootstrap

Zend_Form decorators for Twitter's Bootstrap UI
http://emagister.github.com/zend-form-decorators-bootstrap
168 stars 79 forks source link

Fix Twitter_Bootstrap_Form if getView is NULL #52

Closed dready closed 12 years ago

dready commented 12 years ago

hi,

in Twitter_Bootstrap_Form::_initializePrefixes adds an HelperPath to the View. Unfortunately if you are using Unittests on the Form there is no View. Therefore i added an is_null check.

best regards, dready

theUniC commented 12 years ago

This PR has two fixes, for two different things. Can you split them in two separate PR, please?

dready commented 12 years ago

.. damn! sure. was not supposed to do that^^

dready commented 12 years ago

done.

dready commented 12 years ago

fixed getView is a method and changed the comparison.

But i don"t think it should join the other conditional since it"s only checking if getView() returns a valid view. This has nothing to do with the Prefixes.