Skip to content

Commit

Permalink
pkp#9867 Add reference to error list in hook call
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Apr 5, 2024
1 parent 37d76a6 commit afd867f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/author/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function validate($author, $props, Submission $submission, Context $conte
$errors = $schemaService->formatValidationErrors($validator->errors());
}

Hook::call('Author::validate', [$errors, $author, $props, $allowedLocales, $primaryLocale]);
Hook::call('Author::validate', [&$errors, $author, $props, $allowedLocales, $primaryLocale]);

return $errors;
}
Expand Down

0 comments on commit afd867f

Please sign in to comment.