Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295245

The editor module assumes that a fieldable entity is also revisionable

$
0
0

The editor_entity_update() function gets an EntityInterface, and checks if it is a FieldableEntityInterface. After that it tries to call getRevisionId(), which will succeed in case of the content entities, since content entities are revisionable and fieldable at the same time. However, if a custom entity type (that is not a subclass of content entity) gets saved and it happens to be fieldable but not revisionable then the editor module will trigger a fatal error.


Viewing all articles
Browse latest Browse all 295245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>