Open ghost opened 6 years ago
Found it.
Both declaration of:
- 'TractorCow\Fluent\Extension\FluentExtension'
- 'TractorCow\Fluent\Extension\FluentFilteredExtension'
in yaml configuration, caused the issue. I followed @adder10 example on #207 and removed FluentFilteredExtension
. It seems to work now.
I reopened the issue in order to submit the same bug with a little specification. I noticed that it's caused using explicitly - 'TractorCow\Fluent\Extension\FluentFilteredExtension'
only, alone or in conjunction with - 'TractorCow\Fluent\Extension\FluentExtension'
(still on SS 4.0.3).
Have worked around this issue by going from:
public function getCMSFields()
{
$fields = FieldList::create(
// fields
);
$this->extend('updateCMSFields', $fields);
return $fields;
}
to
public function getCMSFields()
{
$fields = FieldList::create(TabSet::create('Root'));
$fields->addFieldsToTab(
'Root.main',
[
// fields
]
);
$this->extend('updateCMSFields', $fields);
return $fields;
}
on the dataobject that was erroring
Hi everyone,
I'm integrating this module on my SS 4.0.3 project. It currently got 2 langs. I'm trying to follow the docs to configure
has-many
dataobjects in relation to their respective pages. Here's myproject.yml
:In
Reference.php
:in Reference page relation:
(Omitting
Caso.php
to avoid redondance - It's the same as above)After running
/dev/build?flush=all
then try to re-enter DataObject edit page, an exception is thrown:[User Error] FieldList::addFieldToTab() Tried to add a tab to object 'SilverStripe\Forms\FieldList' - 'Root' didn't exist.
I tried to explicitly set a root tab, but nothing. After numerous tries, when calling
updateCMSfields(FieldList $fields)
instead ofgetCMSfield()
the code is compiled and edit the DataObject is allowed. Inside it, i see the Locale/Filterlocale tabs, but both empty. Plus, apparently no DB-splitting of data is set about those fields (if any field is filled then saved, data is copied in both locales).Any suggestion?
Thanks in advance