Skip to content

Commit

Permalink
*6125* OMP clean-up: clean up file upload controllers and grids - cor…
Browse files Browse the repository at this point in the history
…rectly update grid after a revision has been deleted (via cancel)
  • Loading branch information
fgrandel committed Feb 18, 2011
1 parent 90185bc commit a7b0d52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controllers/grid/files/SubmissionFilesGridHandler.inc.php
Expand Up @@ -429,7 +429,7 @@ function deleteFile($args, &$request) {
}

if ($success) {
return $this->elementDeleted($fileId);
return $this->elementsChanged($fileId);
} else {
$json = new JSON(false);
return $json->getString();
Expand Down Expand Up @@ -467,7 +467,7 @@ function saveMetadata($args, &$request) {
if ($metadataForm->validate()) {
$metadataForm->execute($args, $request);
$submissionFile = $metadataForm->getSubmissionFile();
return $this->elementAdded($submissionFile->getFileId());
return $this->elementsChanged($submissionFile->getFileId());
} else {
$json = new JSON(false, $metadataForm->fetch($request));
}
Expand Down
2 changes: 1 addition & 1 deletion lib/pkp
Submodule pkp updated from 90bcdc to 876ff3

0 comments on commit a7b0d52

Please sign in to comment.