Skip to content

Commit

Permalink
Issue #123: Fix check for allowing unpublished paragraphs.
Browse files Browse the repository at this point in the history
Fixes #123
  • Loading branch information
laryn committed Feb 9, 2022
1 parent 46bdb1e commit 3a3bafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paragraphs.field_widget.inc
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
}

if (isset($paragraphs_item)) {
if (isset($bundle_info->allow_unpublish)) {
if (!empty($bundle_info->allow_unpublish)) {
if ($paragraphs_item->status) {
$button_value = t('Unpublish');
}
Expand Down

0 comments on commit 3a3bafa

Please sign in to comment.