Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions /

TableListField headings and translation


Reply


829 Views

Avatar
Myrdhin

Community Member, 67 Posts

23 June 2010 at 2:48am

TableListField headings translation doesn't work.

The problem is in TableListField.php file, line 351, in Headings() function :

"Title" => ($this->sourceClass) ? singleton($this->sourceClass)->fieldLabel($fieldTitle) : $fieldTitle,

shoud be :

"Title" => ($this->sourceClass) ? singleton($this->sourceClass)->fieldLabel($fieldName) : $fieldTitle,

I've opened a ticket (http://open.silverstripe.org/ticket/5742) with a patch.
Hope this help :)