Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace value 2 for the fileStage during submission file creation by a PKP constant #14

Open
tnier01 opened this issue Jun 4, 2021 · 0 comments

Comments

@tnier01
Copy link
Collaborator

tnier01 commented Jun 4, 2021

The SUBMISSION_FILE_SUBMISSION is a PHP constant that is equal to 2. So that’s why it’s working when you use the integer. However, you should use the constant to protect yourself in case the value changes.

If you’re on the main branch, you can use the following:
'fileStage' => PKP\submission\SubmissionFile::SUBMISSION_FILE_SUBMISSION instead of
'fileStage' => 2,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant