diff --git a/core/lib/Drupal/Core/Menu/MenuTreeStorage.php b/core/lib/Drupal/Core/Menu/MenuTreeStorage.php index a7df424..2154492 100644 --- a/core/lib/Drupal/Core/Menu/MenuTreeStorage.php +++ b/core/lib/Drupal/Core/Menu/MenuTreeStorage.php @@ -285,9 +285,9 @@ protected function doSave(array $link) { $affected_menus = []; // Get the existing definition if it exists. This does not use - // self::loadFull() because we want to compare with $link after calling - // self::preSave() and, therefore, we need to avoid unserialization of - // certain fields. + // self::loadFull() to avoid the unserialization of fields with 'serialize' + // equal to TRUE as defined in self::schemaDefinition(). The makes $original + // easier to compare with the return value of self::preSave(). $query = $this->connection->select($this->table, $this->options); $query->fields($this->table); $query->condition('id', $link['id']);