Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Field / ChangedFieldItemList.php
index f781dc93b0dba0a059e81e025c0616916fb1cd41..2647129b926b391d3e02171d698b329271c1a957 100644 (file)
@@ -18,4 +18,16 @@ class ChangedFieldItemList extends FieldItemList {
     return AccessResult::allowedIf($operation !== 'edit');
   }
 
+  /**
+   * {@inheritdoc}
+   */
+  public function hasAffectingChanges(FieldItemListInterface $original_items, $langcode) {
+    // When saving entities in the user interface, the changed timestamp is
+    // automatically incremented by ContentEntityForm::submitForm() even if
+    // nothing was actually changed. Thus, the changed time needs to be
+    // ignored when determining whether there are any actual changes in the
+    // entity.
+    return FALSE;
+  }
+
 }