Skip to content
Snippets Groups Projects

Issue #2911977: Add Media revision UI

Closed Yash Rode requested to merge issue/drupal-2911977:2911977-add-media-revision into 11.x
Compare and
8 files
+ 386
56
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -177,7 +177,7 @@ public function getInstances() {
public function preSaveRevision(EntityStorageInterface $storage, \stdClass $record) {
parent::preSaveRevision($storage, $record);
if (!$this->isNewRevision() && isset($this->original) && (!isset($record->revision_log) || $record->revision_log === '')) {
if (!$this->isNewRevision() && isset($this->original) && empty($record->revision_log_message)) {
// If we are updating an existing block_content without adding a new
// revision and the user did not supply a revision log, keep the existing
// one.
Loading