/** * Save 'manage proof files' form * @param $args array * @param $request PKPRequest * @return JSONMessage JSON object */ function updateProofFiles($args, $request) { $submission = $this->getSubmission(); $representation = $this->getAuthorizedContextObject(ASSOC_TYPE_REPRESENTATION); import('lib.pkp.controllers.grid.files.proof.form.ManageProofFilesForm'); $manageProofFilesForm = new ManageProofFilesForm($submission->getId(), $representation->getId()); $manageProofFilesForm->readInputData(); if ($manageProofFilesForm->validate()) { $manageProofFilesForm->execute($args, $request, $this->getGridCategoryDataElements($request, $this->getStageId()), SUBMISSION_FILE_PROOF); // Let the calling grid reload itself return DAO::getDataChangedEvent(); } else { return new JSONMessage(false); } }