/**
  * Show the form to allow the user to select files from previous stages
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function selectFiles($args, $request)
 {
     $submission = $this->getSubmission();
     $publicationFormat = $this->getAuthorizedContextObject(ASSOC_TYPE_PUBLICATION_FORMAT);
     import('lib.pkp.controllers.grid.files.proof.form.ManageProofFilesForm');
     $manageProofFilesForm = new ManageProofFilesForm($submission->getId(), $publicationFormat->getId());
     $manageProofFilesForm->initData($args, $request);
     return new JSONMessage(true, $manageProofFilesForm->fetch($request));
 }
 /**
  * Show the form to allow the user to select files from previous stages
  * @param $args array
  * @param $request PKPRequest
  * @return JSONMessage JSON object
  */
 function selectFiles($args, $request)
 {
     $submission = $this->getSubmission();
     $representationDao = Application::getRepresentationDAO();
     $representation = $representationDao->getById($request->getUserVar('representationId'), $submission->getId());
     import('lib.pkp.controllers.grid.files.proof.form.ManageProofFilesForm');
     $manageProofFilesForm = new ManageProofFilesForm($submission->getId(), $representation->getId());
     $manageProofFilesForm->initData($args, $request);
     return new JSONMessage(true, $manageProofFilesForm->fetch($request));
 }