silverstripe/sapphire — pull request #492 by ajshort (2012-05-27 11:48:42+00:00)
Title: Fix ModelAdmin When Managed Models Is Array

If the managed models is an array, ModelAdmin::init() uses key() to determine the default managed model to use. In some circumstances the array has already been iterated, so key() returns NULL, so the security check always fails.

This fixes it by reset'ing the array first. Also removed deprecated url params usage.