silverstripe/sapphire — pull request #220 by oddnoc (2012-03-09 01:37:33+00:00)
Title: BUGFIX #6817: FieldList.php: findOrMakeTab () fails for nested TabSets

- Implements recommended solution from bug report.
- Calculates last index only once instead of at each loop iteration.
- There was no existing test for this method, so if someone can implement a test, that would be great.