Skip to content

Commit

Permalink
Fixes verification at handler class; Updates version.xml
Browse files Browse the repository at this point in the history
Issue: documentacao-e-tarefas/scielo#600

Signed-off-by: Jhon <[email protected]>
  • Loading branch information
JhonathanLepidus committed Oct 10, 2023
1 parent bcf7238 commit f0a6117
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v1/authorVersion/AuthorVersionHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function deleteVersion($slimRequest, $response, $args)
$submission = $this->getSubmission($slimRequest);
$publication = $submission->getLatestPublication();

if($publication->getData('datePublished') == STATUS_PUBLISHED or $publication->getData('version') == 1) {
if($publication->getData('status') == STATUS_PUBLISHED or $publication->getData('version') == 1) {
return $response->withStatus(400);
}

Expand Down
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<version>
<application>authorVersion</application>
<type>plugins.generic</type>
<release>1.5.0.0</release>
<date>2023-10-06</date>
<release>1.5.1.0</release>
<date>2023-10-10</date>
<lazy-load>1</lazy-load>
<class>AuthorVersionPlugin</class>
</version>

0 comments on commit f0a6117

Please sign in to comment.