I have just moved a site from beta1 to beta3 and I am encountering issues with the Relation Editor that I didn't have before. If I have just opened or refreshed a page and then click on one of my items in the editor it opens just fine, but if I do not refresh the page and try to go back and view another item I get two popups that say "not found". Again if I refresh the page it works again.
I tried just adding components instead of using the GridFieldConfig_RelationEditor and once I get that going and I click on a edit button I get two popups again that say "forbidden".
Here is what I have. I included the two different ways I have tried, so both methods below are not used at the same time. I also have included setDisplayFields in the code below. However I have to remove this as well or I get a setDisplayFields is not available error.
public static $has_many = array(
'Lots'=>'Lot'
);
public function getCMSFields() {
$f = parent::getCMSFields();
$o = DataList::create('Lot');
$config = new GridFieldConfig_RelationEditor();
Or I tried using this
$config = new GridFieldConfig();
$config->addComponent(new GridFieldDataColumns());
$config->addComponent(new GridFieldSortableHeader());
$config->addComponent(new GridFieldPaginator());
$config->addComponent(new GridFieldEditButton());
$gridField = new GridField('Lots','Lots',$o,$config);
$gridField->setDisplayFields(array(
'ID' => 'ID',
'Address' => 'Address'
));
$f->addFieldToTab('Root.Main',$gridField);
return $f;
Thanks for any help.