Hi,
I'm using the following code to generate a dropdown list array.
function ... {
if($Pages = DataObject::get('RealestateSuburb'))
{
return $Pages->map('ID', 'Title', 'Any');
}
else
{
return array('No Objects found');
}
}
The problem is in ss3 it doesn't insert the default first item, which is "Any" in this case. Worked fine in 2.4x.
Prob a simple thing.
Thanks
Regards
Scott