Hi,
It seems that in 2.3 , a strict order has to be followed within getCMSFields(). This worked in 2.2 and is very upgrade-unfriendly.
Can anyone please confirm that this is indeed a bug and happens for them as well ? If so , I'll create a new ticket for it.
;-)
This works :
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Main', new ImageField('Screenshot'), 'Content');
$fields->removeFieldFromTab("Root.Content.Main","Thumbnail");
$fields->removeFieldFromTab("Root.Content.Main","Summary");
$fields->removeFieldFromTab("Root.Content.Main","Content");
return $fields;
}
while this does not :
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->removeFieldFromTab("Root.Content.Main","Thumbnail");
$fields->removeFieldFromTab("Root.Content.Main","Summary");
$fields->removeFieldFromTab("Root.Content.Main","Content");
$fields->addFieldToTab('Root.Content.Main', new ImageField('Screenshot'), 'Content');
return $fields;
}