Skip to content

Commit

Permalink
Add IO pub. status update via REST API. (#1623)
Browse files Browse the repository at this point in the history
Added functionality to the information object update REST API endpoint
to allow an information object's publication status to be changed.
  • Loading branch information
mcantelon committed Jul 5, 2023
1 parent b0d0011 commit 52fe438
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,17 @@ protected function processField($field, $value)
$this->io->levelOfDescriptionId = $term->id;
}

break;

case 'published':
if ($value) {
$publicationStatus = 'Published';
} else {
$publicationStatus = 'Draft';
}

$this->io->setPublicationStatusByName($publicationStatus);

break;
}
}
Expand Down

0 comments on commit 52fe438

Please sign in to comment.