diff --git a/controllers/grid/users/author/AuthorGridHandler.inc.php b/controllers/grid/users/author/AuthorGridHandler.inc.php index 1df0806c8e4..bfe928f2d87 100644 --- a/controllers/grid/users/author/AuthorGridHandler.inc.php +++ b/controllers/grid/users/author/AuthorGridHandler.inc.php @@ -393,6 +393,8 @@ function deleteAuthor($args, $request) { $authorDao->deleteById($authorId); $json = DAO::getDataChangedEvent($authorId); $json->setGlobalEvent('authorsUpdated'); + $publication = $this->getPublication(); + $publication = Services::get('publication')->edit($publication, [], Application::get()->getRequest()); return $json; } diff --git a/controllers/grid/users/author/form/PKPAuthorForm.inc.php b/controllers/grid/users/author/form/PKPAuthorForm.inc.php index ae2d082368a..1bf1dd73068 100644 --- a/controllers/grid/users/author/form/PKPAuthorForm.inc.php +++ b/controllers/grid/users/author/form/PKPAuthorForm.inc.php @@ -256,8 +256,10 @@ function execute(...$functionParams) { throw new Exception('Invalid primary contact ID. This author can not be a primary contact.'); } $publication = Services::get('publication')->edit($publication, $params, Application::get()->getRequest()); + } else { + // Log an event when publication data is updated + $publication = Services::get('publication')->edit($publication, [], Application::get()->getRequest()); } - return $authorId; } }