Skip to content

Commit

Permalink
fix: restore wrongly removed variable
Browse files Browse the repository at this point in the history
Refs: RW-831
  • Loading branch information
orakili committed Jan 7, 2025
1 parent 986e29c commit c511faa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ public function getFilterDefaultStatuses() {
*/
public function getEntityFormSubmitButtons($status, EntityModeratedInterface $entity) {
$buttons = [];
$new = empty($status) || $status === 'draft' || $entity->isNew();

// Editors can publish, put on hold or refuse a document.
// @todo use permission.
Expand Down

0 comments on commit c511faa

Please sign in to comment.