Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / Sql / SqlContentEntityStorageSchemaConverter.php
index 2d3edfc6d49a61e74a61d237b45cb3e12fd3ffb3..aa92e0f37cc70370682416aa583645e90cda8c79 100644 (file)
@@ -296,7 +296,9 @@ class SqlContentEntityStorageSchemaConverter {
         // Set the 'revision_translation_affected' flag to TRUE to match the
         // previous API return value: if the field was not defined the value
         // returned was always TRUE.
-        $entity->set($revision_translation_affected_key, TRUE);
+        if ($temporary_entity_type->isTranslatable()) {
+          $entity->set($revision_translation_affected_key, TRUE);
+        }
 
         // Treat the entity as new in order to make the storage do an INSERT
         // rather than an UPDATE.