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
HistoryGridFieldItemRequest on line 138 expects decorated objects to feature a CMSEditLink() method, but doesn't enforce / indicate this requirement anywhere.
CMSEditLink() comes from silverstripe/framework, in the CMSPreviewable interface, and I would expect decorated objects to throw an exception far earlier in the control chain, if not on install (dev/build). If going with the latter idea, then declaring an add_to_class() or a constructor on method the DataObjectHistory extension and checking that the decorated object implements CMSPreviewable, would be the way to go.
The text was updated successfully, but these errors were encountered:
PHP 7.1 / Ubuntu 16.04 / silverstripe/framework 4.3.3
HistoryGridFieldItemRequest
on line 138 expects decorated objects to feature aCMSEditLink()
method, but doesn't enforce / indicate this requirement anywhere.CMSEditLink()
comes from silverstripe/framework, in theCMSPreviewable
interface, and I would expect decorated objects to throw an exception far earlier in the control chain, if not on install (dev/build). If going with the latter idea, then declaring anadd_to_class()
or a constructor on method theDataObjectHistory
extension and checking that the decorated objectimplements CMSPreviewable
, would be the way to go.The text was updated successfully, but these errors were encountered: