Suppose we are following this tutorial on [url=http://doc.silverstripe.org/doku.php?id=modeladmin]ModelAdmin[/url] and we changed the following to:
static $searchable_fields = array(
'Name' => array('title'=>'Name'),
'ProductCode' => array('title'=>'Product Code'),
'Category.Name' => array('title'=>'Product Group') // add category name to searchable fields
Great we can search the category names with a text field, seeing as this is a $has_one relationship wouldn't it make sense to have a dropdown instead so you can simply select a Category from the list?
With that being said it really doesn't look like ModelAdmin supports this without overriding ModelAdmin's SearchForm method is that correct?
Has anyone done this if please share, or if there an easier way please tell :)