Skip to content

Commit

Permalink
pkp#10019 Fix publication update when modifying contributor
Browse files Browse the repository at this point in the history
  • Loading branch information
salmanm2003 committed Jun 19, 2024
1 parent dd3ac26 commit 92d9cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions controllers/grid/users/author/AuthorGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 0 additions & 3 deletions controllers/grid/users/author/form/PKPAuthorForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ 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;
Expand Down

0 comments on commit 92d9cfd

Please sign in to comment.