Adding the SearchServiceExtension to SilverStripe\Assets\File fails when trying to edit those files, as the Root.Main tab doesn't exist.
We should perhaps only try to add the 'Last indexed' field if we can find a field that it fits alongside (e.g. use insertAfter('Title')) instead of assuming the structure of the CMS fields.
Adding the SearchServiceExtension to
SilverStripe\Assets\File
fails when trying to edit those files, as theRoot.Main
tab doesn't exist.We should perhaps only try to add the 'Last indexed' field if we can find a field that it fits alongside (e.g. use
insertAfter('Title')
) instead of assuming the structure of the CMS fields.