You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I presume the intended behaviour of unticking "Allow unpublishing from the admin interface." is so that the Unpublish/Publish option does not appear when editing a paragraph.
I find that the setting is being ignored. Sorry I don't know enough to provide a diff file.
I'm looking at version 1.x-1.2.0-alpha2, in the paragraphs.field_widget.inc file, in the paragraphs_field_widget_form_build function
At line 602 you have
if (isset($bundle_info->allow_unpublish)) {
which is true even if $bundle_info->allow_unpublish == 0
I changed it to
if (isset($bundle_info->allow_unpublish) && $bundle_info->allow_unpublish) {
and it has worked for me.
Hope this helps.
Noel
The text was updated successfully, but these errors were encountered:
Thanks @e0Re0R -- good catch. If the setting was turned on and then turned off it remains set and could never be hidden with the previous logic. I've changed isset to !empty which does the equivalent of what you are proposing.
I appreciate the report. This will be in the next release.
Hi,
I presume the intended behaviour of unticking "Allow unpublishing from the admin interface." is so that the Unpublish/Publish option does not appear when editing a paragraph.
I find that the setting is being ignored. Sorry I don't know enough to provide a diff file.
I'm looking at version 1.x-1.2.0-alpha2, in the paragraphs.field_widget.inc file, in the paragraphs_field_widget_form_build function
At line 602 you have
if (isset($bundle_info->allow_unpublish)) {
which is true even if $bundle_info->allow_unpublish == 0
I changed it to
if (isset($bundle_info->allow_unpublish) && $bundle_info->allow_unpublish) {
and it has worked for me.
Hope this helps.
Noel
The text was updated successfully, but these errors were encountered: