When creating new panelizer layout for a teaser mode (or other views modes) on either the Space or Section content types, the taxonomy selector defined in the buttons module fails.

Steps to reproduce:

Create Panelizer layout for Space node type using teaser mode
1) Go to panelizer config at admin/config/content/panelizer
2) Navigate down to the "Space" content type and check off the boxes under "teaser" to create a new teaser layout for spaces.
3) Click "list" and create your default layout for teaser and save.

Now go to administer the "space" type taxonomy vocab
4) Add a new term
5) Now select the term's layout.

You'll see there's only one layout option available (Default), and others have disappeared.

Patch to follow.

CommentFileSizeAuthor
#1 openatrium.code_.2072159-1.patch3.12 KBCMS Dude
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

CMS Dude’s picture

Status: Active » Needs review
FileSize
3.12 KB

Created a patch for the modifications that solve the issue in my environment.

Needs review.

mpotter’s picture

Status: Needs review » Needs work

Removing the "if (isset($form['field_oa_node_types']))..." lines is a problem. Those lines are needed to prevent errors/warnings when the fields do not exist on the form. So not sure why you got rid of those.

mpotter’s picture

Issue summary: View changes

Updated issue summary.

Argus’s picture

Any progress?

Argus’s picture

Issue summary: View changes
Status: Needs work » Postponed

Postponing because of inactivity.

mpotter’s picture

Status: Postponed » Fixed

OK, I looked into this a bit more. I was able to reproduce the original problem. However, the patch included a bunch of other stuff that doesn't seem related (as mentioned in #2). Also, oa_buttons has been refactored and some of the code now lives in oa_core.

I was able to take a piece of the patch and apply it to oa_core and fix the original problem. This was committed in b0c20bd. You can re-open this issue if there is still a problem. If you other changes in the patch were meant to fix other issues, please open new issue tickets for them.

Status: Fixed » Closed (fixed)

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