silverstripe/sapphire — pull request #1056 by kopymark (2012-12-19 07:24:50+00:00)
Title: Set 'active' correctly for accordion widget

The accordion widget was previously being passed true and false, where as it either expects true or the integer of the panel to show.

This fix sets it as either false or 0. I'm making the assumption that with the Silverstripe implementation with ToggleCompositeField, there would only ever be a single panel. If the field allows for more than one panel, then we would need to alter the `setStartClosed()` function to allow for an integer rather than just true/false.