ModelAdmin managing the following model...
class MyObject extends DataObject
{
static $db = array(
'MyDate' => 'Date',
);
public static $summary_fields = array (
'MyDateText' => 'DateFormatted'
);
static $casting = array(
"MyDateText" => 'Text',
);
public function MyDateText(){return date('d/m/Y',DateManager::DateToPHPDate($this->MyDate));}
}
I've also done stuff to allow me to search, BUT the issue is that I now have lost the ability to click the column heading in the search results to order the data by that column... can anyone help me with this please?
(I am using 2.4.0, but planning on getting to 2.4.3 in the new year, maybe I should wait?)