I'm seeing the error "Undefined index: log" when a user who cannot access revisions is editing a Panelized node with Panels IPE.

It's happening on line 227 of panelizer_add_revision_info_form_submit().

The problem is that in panelizer_add_revision_info_form() the 'log' element at $form['revision_information']['log'] doesn't get added to the form if the user cannot control revisions.

Comments

joelstein created an issue. See original summary.

joelstein’s picture

Status: Active » Needs review
StatusFileSize
new1.32 KB

Here's a patch which moves the access logic to $form['revision_information']['log']['#access'].

damienmckenna’s picture

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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