I am currently unable to retain settings from a Visibility rule created based around User user: Group membership Field provided by OG when using Panels.

Not only do the settings remain unset after making config changes, but there are also AJAX errors when trying to use the forms.

Screencast: http://screencast.com/t/P8mCsrxWiV

To duplicate, install OG and Panels. Use page manager to set up a page. After setting up a layout, you can add content. Add a pane of your choice to the panels page. Now click on the pane's settings (gear icon) and add a Visibility rule. Choose "User user: Group membership Field" - save settings or use the "add" buttons in the form to see the bugs.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kevinwalsh’s picture

I have reproduced this bug using 7.x-2.3

kevinwalsh’s picture

I've been able to work around this bug (i assume it's a bug) by adding a context for a particular OG node, then using the visibility rule OG: membership in group. See screenshots.

joep.hendrix’s picture

Issue summary: View changes

Yep, this seems to bug and is still present on 7.x-2.7.
In our case we have an Open Atrium site but the visibility settings will store an empty string which results that the pane is not visible for anyone.
The workaround in the previous comment does not apply in our case, I just want to compare against arbitrary groups not related to the current node.

There are some notices thrown:

  • Notice: Undefined index: #bundle in og_complex_widget_after_build() (line 341 of /og/includes/og.field.inc).
  • Notice: Undefined index: #entity_type in og_complex_widget_after_build() (line 341 of /og/includes/og.field.inc).