Skip to content

Commit

Permalink
pkp#10636 update notifications on submission submit
Browse files Browse the repository at this point in the history
  • Loading branch information
taslangraham committed Dec 5, 2024
1 parent c4cf339 commit 1b418bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/v1/submissions/PKPSubmissionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,16 @@ public function submit(SlimRequest $slimRequest, APIResponse $response, array $a
Repo::eventLog()->add($eventLog);
}


$notificationManager = new NotificationManager();
$notificationManager->updateNotification(
Application::get()->getRequest(),
[PKPNotification::NOTIFICATION_TYPE_APPROVE_SUBMISSION],
null,
PKPApplication::ASSOC_TYPE_SUBMISSION,
$submission->getId()
);

$userGroups = Repo::userGroup()
->getCollector()
->filterByContextIds([$context->getId()])
Expand Down

0 comments on commit 1b418bf

Please sign in to comment.