Skip to content

Commit

Permalink
NBNP-447 Move DZI cleanup to postsave
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobSanford committed Jun 4, 2024
1 parent d07a865 commit 5ed22d6
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,19 +435,12 @@ public function delete() {
parent::delete();
}

/**
* {@inheritdoc}
*/
public function save() {
_newspapers_core_delete_image_dzi($this->id());
parent::save();
}

/**
* {@inheritDoc}
*/
public function postSave(EntityStorageInterface $storage, $update = TRUE) {
$this->movePageImageToPermanentStorage(TRUE);
_newspapers_core_delete_image_dzi($this->id());
parent::postSave($storage, $update);
}

Expand Down

0 comments on commit 5ed22d6

Please sign in to comment.