Skip to content

Commit

Permalink
#36 Fix DAO fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Dec 11, 2024
1 parent 4098f75 commit c17c529
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwordPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function performAutomaticDeposits(Submission $submission) {

if ($sendDepositNotification) {
$submissionAuthors = [];
$dao = new StageAssignmentDAO();
$dao = DAORegistry::getDAO('StageAssignmentDAO');
$daoResult = $dao->getBySubmissionAndRoleId($submission->getId(), ROLE_ID_AUTHOR);
while ($record = $daoResult->next()) {
$userId = $record->getData('userId');
Expand Down

0 comments on commit c17c529

Please sign in to comment.