There is an options in Panopoly Admin module, that allows to hide the promote and sticky options from the node edit form.

But this form alteration is made in the global hook_form_alter() hook without any check against the current form.

So this also alters any other form that has an 'options' key and may have unexpected results.

Comments

b-prod’s picture

Status: Active » Needs review
StatusFileSize
new10.01 KB

The patch below fixes the issue and factorize the alterations common to the node edit form, for better readability.

dsnopek’s picture

Status: Needs review » Needs work

Thanks! I think this should be fine, I'll just need to do some manual testing to make sure we weren't expecting this to clean up the Fieldable Panels Pane edit form as well.

However, this contains unrelated whitespace fixes. Can you re-roll the patch without those? We don't merge patches with unrelated changes, even if they are good ones because they can break other patches in the queue. See this issue for more details:

#2447605: [META] Perform coding style fixes

b-prod’s picture

Status: Needs work » Needs review
StatusFileSize
new5.13 KB

This patch should not contain any changes related to the syntax (my IDE automatically fixes such things, that's why these changes appear in the patch).

The patch has been rerolled on the latest DEV version.

dsnopek’s picture

Status: Needs review » Fixed

Patch looks great! Manual testing looked good. I've committed this - let's see what Travis-CI thinks:

https://travis-ci.org/panopoly/panopoly/builds/55168502

Thanks, @B-Prod for your work on this!

  • dsnopek committed 18cd350 on 7.x-1.x
    Update Panopoly Admin for Issue #2429327 by B-Prod: The alteration of...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.