It looks like every time when I open Bootstrap Gallery Settings and click Apply and open it again after that the Grouping Field increase +1.
So now I have around 20 Grouping Fields in the code. this is happening only with Bootstrap Gallery format. If I change to other Format and get back to Bootstrap Gallery the Grouping Field resets to 1.

using views 3.8

CommentFileSizeAuthor
inspector.jpg329.58 KBmogop
grouping-field.jpg145.28 KBmogop

Comments

mist’s picture

I have the same issue.

I suppose the issue comes from incorrect value in VIEW $form_state in validation

groups (Array, 1 element)

    style_options][bootstrap_gallery (Array, 1 element)
        #group_exists (Boolean) TRUE

it should be like this:
$form_state['groups']['style_options']['bootstrap_gallery']['#group_exists']

and propably this lines in views_bootstrap_gallery_plugin_style_bootstrap_gallery.inc

  // Don't run validation on style plugins without the grouping setting.
        if (isset($form_state['values']['style_options']['bootstrap_gallery'])
            && $options = $form_state['values']['style_options']['bootstrap_gallery']) {
{

unfortunatly as for now I cannot trace place where the inproper keys are assigned.

lunk rat’s picture

I also see this issue. A new grouping field is created every time you open and save the Settings dialog for the Bootstrap Gallery format when configuring your view.

So you start off with Grouping field Nr.1 configured to - None - and it you open/save the settings 20 times you will build up to Grouping field Nr.21 with all of them set to - None -

lunk rat’s picture

Title: Dublicating Grouping Field in Settings » Duplicating Grouping Field in Settings
mogop’s picture

Hi guys its been a while. Do you manage to fix the bug?

kharbat’s picture

Status: Active » Fixed

The view plugin doesn't require grouping, so it will be disabled. Will be fixed in the next release

  • kharbat committed d739b90 on 7.x-3.x
    Issue #2231409: Make use of File entity instead of image field, Issue #...

Status: Fixed » Closed (fixed)

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