silverstripe / silverstripe-search-service

A service-agnostic search module for Silverstripe CMS
BSD 3-Clause "New" or "Revised" License
5 stars 18 forks source link

SearchServiceExtension->updateCMSFields() fails when added to Files #65

Closed madmatt closed 2 years ago

madmatt commented 2 years ago

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.