Searchable Fields Error

silverstripe-4
Tags: #<Tag:0x00007f10cdc80c00>

#1

In SS 4.3 I can’t pass a function to $searchable_fields… If I do I get “[Emergency] Uncaught Error: Call to a member function scaffoldSearchField() on string”. Is there a way I can pass a simple function there (that’ll return a string)?


#2

There’s a bit of discussion about it here: BadMethodCallException when scafolding search · Issue #8792 · silverstripe/silverstripe-framework · GitHub