/** * Post copyedit comment. * @param $args array * @param $request object */ function postCopyeditComment($args, $request) { $articleId = (int) $request->getUserVar('articleId'); $this->validate($request, $articleId); $this->setupTemplate(true); // If the user pressed the "Save and email" button, then email the comment. $emailComment = $request->getUserVar('saveAndEmail') != null ? true : false; if (CopyeditorAction::postCopyeditComment($this->submission, $emailComment, $request)) { CopyeditorAction::viewCopyeditComments($this->submission); } }
/** * Post copyedit comment. */ function postCopyeditComment() { CopyeditorHandler::validate(); CopyeditorHandler::setupTemplate(true); $articleId = Request::getUserVar('articleId'); // If the user pressed the "Save and email" button, then email the comment. $emailComment = Request::getUserVar('saveAndEmail') != null ? true : false; list($journal, $submission) = SubmissionCopyeditHandler::validate($articleId); if (CopyeditorAction::postCopyeditComment($submission, $emailComment)) { CopyeditorAction::viewCopyeditComments($submission); } }
/** * Post copyedit comment. */ function postCopyeditComment() { $this->validate(); $this->setupTemplate(true); $articleId = Request::getUserVar('articleId'); // If the user pressed the "Save and email" button, then email the comment. $emailComment = Request::getUserVar('saveAndEmail') != null ? true : false; $submissionCopyeditHandler = new SubmissionCopyeditHandler(); $submissionCopyeditHandler->validate($articleId); $submission =& $submissionCopyeditHandler->submission; if (CopyeditorAction::postCopyeditComment($submission, $emailComment)) { CopyeditorAction::viewCopyeditComments($submission); } }