You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some really odd reason, I cannot get the override to the gridextension to allow for unlinking blocks to work. I only get the archive option. Any idea what could cause this?
#7
Open
aNorthernSoul opened this issue
Mar 26, 2019
· 4 comments
For some really odd reason, I cannot get the override to the gridextension to allow for unlinking blocks to work. I only get the archive option. Any idea what could cause this? It's a pretty straightforward install.
Line 76 of SilverStripe\Versioned\GridFieldArchiveAction
$isModelVersioned = $model::has_extension(Versioned::class);
if ($isModelVersioned) {
$gridField->getConfig()->removeComponentsByType(GridFieldDeleteAction::class);
}
Absolutely no idea whats the reasoning behind this. The above code will remove unlink action but keep the archive one in the gridfield.
I have a feeling this is only taking into account many_many through relations and not direct many_many ones.
I will do a fix for the module here but this look like a framework bug.
No description provided.
The text was updated successfully, but these errors were encountered: