joomla/joomla-cms — pull request #2565 by Bakual (2013-11-20 07:10:37+00:00)
Title: Removing call to ModulesHelper from formfield ChromeStyle

Currently the formfield `ChromeStyle` can only be used in the context of `com_modules` because it depends on the class `ModulesHelper` to fetch the installed templates.
If used outside of com_modules it results in a fatal error because the class isn't autoloaded.

This PR simply removes that call and does the database lookup in the formfield itself.

To test this you can change an existing form to use this formfield and see if it shows the list of available module chromstyles.