A new issue in OJS 3.5.0-5 is that during the submission, at the view stage in the submission form

A new issue in OJS 3.5.0-5 is that during the submission, at the view stage in the submission form, the notification " No contributors have been added for this submission" is given when there is no contributor added, but it is not restricted to a minimum of one contributor; then the submit button should be active for submission.

Add the validation here:

lib/pkp/classes/submission/Repository.php

Inside:

public function validateSubmit(Submission $submission, Context $context): array

Add this immediately after:

$locale = $submission->getData(ā€˜locale’);
$publication = $submission->getCurrentPublication();
$errors = [];

Add:

// Require at least one contributor before final submission
$authors = $publication->getData(ā€˜authors’);

if (!$authors || $authors->isEmpty()) {
$errors[ā€˜contributors’] = [
__(ā€˜submission.wizard.noContributors’)
];
}

1 Like