Skip to content

Commit

Permalink
Merge pull request #10087 from ubiquitypress/ojs-stable-3_3_0_fix_upd…
Browse files Browse the repository at this point in the history
…ating_contributors_log

#10019 Activity Log not updating when modifying contributor
  • Loading branch information
bozana authored Jun 19, 2024
2 parents 9cefe80 + 6cb8d54 commit 437aff5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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
4 changes: 3 additions & 1 deletion controllers/grid/users/author/form/PKPAuthorForm.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 437aff5

Please sign in to comment.