Skip to content

Commit

Permalink
Relax numeric type to positive ints https://forum.pkp.sfu.ca/t/what-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Sep 13, 2018
1 parent 0e0fb5b commit 070bd60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/grid/issues/form/IssueGalleyForm.inc.php
Expand Up @@ -82,7 +82,7 @@ function validate($callHooks = true) {

$publicGalleyId = $this->getData('publicGalleyId');
if ($publicGalleyId) {
if (is_numeric($publicGalleyId)) {
if (ctype_digit($publicGalleyId)) {
$this->addError('publicGalleyId', __('editor.publicIdentificationNumericNotAllowed', array('publicIdentifier' => $publicGalleyId)));
$this->addErrorField('publicGalleyId');
} elseif ($journalDao->anyPubIdExists($journal->getId(), 'publisher-id', $publicGalleyId, ASSOC_TYPE_ISSUE_GALLEY, $this->_issueGalley?$this->_issueGalley->getId():null, true)) {
Expand Down

0 comments on commit 070bd60

Please sign in to comment.