Silverstripe 4 branch assumes Versioned
robingram opened this issue · comments
Rob Ingram commented
When trying to upgrade an existing site to SS4 using the recommended branch I'm getting errors when trying to edit a data object that isn't versioned.
This is because the Delete button calls $record->isPublished()
. This is a change to the SS3 implementation which called a method in the GridFieldBetterButtonsItemRequest
class that checked for the existence of the Versioned
extension on the data object first.
Kong Jin Jie commented
Assume $record is "published" if it is not versioned.