Unchecking the "Create new revision" checkbox on the panelizer editing pages doesn't have any effect, a new revision is always created.

In order to get the "Create new revision" checkbox to appear on the panelizer pages, you need to check "Create new revision" on the edit content type page, which may or may not have anything to do with the problem.

Comments

damienmckenna’s picture

Status: Active » Postponed (maintainer needs more info)

Please try the patch in #1402860: Panelizer is incompatible with moderation and let us know if it resolves the problem.

xen’s picture

It somewhat works, see the comment in that issue.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
xen’s picture

Status: Closed (duplicate) » Active

Dupe? The other issue is about panelizer compatibility with workflow_moderation and other revision based moderation modules, while this is purely a bug report about panelizer always creating a new revision. Fixing this one does *not* fix the other, and the other might be marked wontfix due to deeper architectural incompatibilities, which could cause this, plain and simple, bug to slip through the cracks.

Rather, #1402860: Panelizer is incompatible with moderation should reference this as part of the bigger problem.

@DamienMcKenna Do you agree?

damienmckenna’s picture

Status: Active » Needs work
StatusFileSize
new474 bytes

I concur.

This is my initial patch that appears to resolve the problem for the main Content page, but the others need work.

webkomplize’s picture

@DamienMcKenna

What exactly do you mean with "...problem for the main Content page, but the others need work" ?
For me using the panelizer-n1402860-14-d7_2.patch does not prevent panelizer for creating revisions on IPE customizing panelizer page.

Also the patch from #1402860: Panelizer is incompatible with moderation does not work for me.

Would be really great to have a solution for this. Is there anything i can test, debug?

xen’s picture

@webkomplize
For me, the patch worked in the regard that unchecking the 'create new revision' when saving the panel on the main editing page, caused it to not create a new version.

However, it still didn't work on the layout/context/etc. pages.

damienmckenna’s picture

Status: Needs work » Needs review
StatusFileSize
new884 bytes

This is an updated patch that, at least in my testing, lets the user edit all tabs and the "Create new revision" checkbox is properly adhered to.

damienmckenna’s picture

StatusFileSize
new884 bytes

Slight change to the comment.

damienmckenna’s picture

damienmckenna’s picture

My patch from #9 above will apply to both the 7.x-2.x and 7.x-3.x branches but has only been tested with 7.x-2.x.

damienmckenna’s picture

damienmckenna’s picture

FYI the ability to view node revisions was a problem in CTools, see #1820882 for further details.

xen’s picture

Status: Needs review » Reviewed & tested by the community

I've tried saving on each subpage, and it doesn't create a new revision when instructed not too.

Looks good to me.

jweowu’s picture

+1

#9 certainly appears to do the trick. New revisions are now only created when the checkbox is selected, and no errors were logged.

Thanks Damien.

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

I've committed the fix from #9 to both the 7.x-2.x and 7.x-3.x branches.

Status: Fixed » Closed (fixed)

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