Hi all,

I'm struggling trying to create a new filter group to create complex conditions in my filter criteria.

When I open the filters to rearrange the condition I see the link "Create new filter". Then I click on this link to create a new filter group,but I go back to the view edit page. Checking the link of the "Create new filter" I can see that it is linked to
admin/structure/views/view/buscador_de_anuncios/edit?render=overlay#

Where buscador_de_anuncios is the view I'm trying to modify.

Any help to solve this issue?

I checked the thread issue but aggregation css has not solved the problem.

Thanks!
Javier

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Just a fast guess: Have you installed jquery update on your site?

javier.drupal.2012’s picture

Thanks for this @dawehner.

I did not install the jquery update. I have just installed it, however the behaviour is the same :( I click on create new filter group, whose url is still the same http://myweb.com/admin/structure/views/view/buscador_de_ofertas/edit?ren....

I have cleaned the caches just in case

Any other idea?

Thanks heaps
Javier

dawehner’s picture

Yeah jquery update might have caused some issues.

Do you see some javascript errors triggered on the page, as they might be the reason for this problem?

javier.drupal.2012’s picture

Hi @dawehner,

I'm opening the view with chrome console and I can not find any js error mmmmmmm it is odd.....I'm wondering why the url of the link "create new filter group" is pointing to http://localhost:8082/admin/structure/views/view/empleado/edit?render=ov...?

Christopher Riley’s picture

Priority: Normal » Major

I am having the same issue with the latest release as well as dev version. I tried it on another site and it worked fine. The only difference that I can possibly see is that one is running php5.4 and the other is 5.3 could this be an issue and if so where do I start trying to figure out where the issue is?

Thanks in advance

Christopher Riley’s picture

Think I figured out which module was borking things. It appears that if you have the hide_submit module loaded it screws the routine up. As soon as I disabled that module all is well again in Drupal land.

dawehner’s picture

Status: Active » Fixed

Nice, hide_submit is a new one.

javier.drupal.2012’s picture

Thanks for this @cmriley!

I tested disabling hide submit and filter grouping is working again. Should we move this issue to hide_submit project?

Javier

Christopher Riley’s picture

I already put in a issue requesting that the module not be enabled within views as I can see no logical reason that it should be active within there. In theory we could write a custom module to turn it off using the api however I figured lets see what happens to my request.

greggles’s picture

crealosophy’s picture

Version: 7.x-3.5 » 7.x-3.6

I don't have hide_submit installed, but I'm working with jQuery_update. The link text is "undefined" and the href is #. When I click, nothing happens, no errors in firebug.

I am working with the bootstrap theme as administration theme, latest Views and CTools (updated because of the display/toggle problem for rewriting results) and jQuery 1.7. Language is Dutch (maybe that could trigger the undefined text?).

Thanks in advance.

crealosophy’s picture

Status: Fixed » Active

Probably should set this to active to get response? If I'm doing something wrong, sorry!

Herr Lehmann’s picture

Version: 7.x-3.6 » 7.x-3.7

I'm having the same issue. I would like to create a filter group to apply AND/OR critera to my filters, however I don't have the link! The screenshot shows, that there is only a link labled "undefined" pointing to admin/structure/views/view/crm/edit/block_7#

I'm using 7.x-3-7.

HairMachine’s picture

I have a possibly related problem occurring - as in #13 the link to 'create a new filter group' is simply not present in the filter rearrangement overlay at first; however the second time I open this overlay it does appear, and I can add a new filter group whilst dragging and dropping as normal.

However, after I submit the changes nothing happens, and no new filter group is created.

I do not have hide_submit installed, but jQuery update is present. There are no JS errors present in the console log.

Also using 7.x-3.7

arancedisicilia’s picture

Hi all.

I had the same exact problem as #11.
I don't know how to completely fix this, but I found a kind of a work-around. Here is what I did:

- I realized that the #views-add-group button was hidden, due to the class "js-hide" of that element
- I found out that that class is toggled by views-admin.js in this part of the code:

Drupal.behaviors.viewsUiEditView.attach = function (context, settings) {
  // Only show the SQL rewrite warning when the user has chosen the
  // corresponding checkbox.
  jQuery('#edit-query-options-disable-sql-rewrite').click(function () {
    jQuery('.sql-rewrite-warning').toggleClass('js-hide');
  });
};

- Re-enabling the sql rewrite for that particular display of the view (which was disabled in my case) made the button reappear

I still have problems in doing what I need, but maybe this can help someone find the problem.

jtwalters’s picture

If you do have hide_submit module and you would like to resolve this bug, here's a patch.

drupalninja99’s picture

+1 on the hide_submit module problem

jgsantos’s picture

Yes ! +1 on the hide_submit module problem. Just apply the patch and clear cache. Problem solved. Thanks !

firoz2456’s picture

Yes applying Patch #16 and clearing cache works. Thanks a lot

rlmumford’s picture

Status: Active » Reviewed & tested by the community

Applying patch #16 solves the problem for me.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 16: views-hide-submit-compatibility-1939426-16.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 16: views-hide-submit-compatibility-1939426-16.patch, failed testing.

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 16: views-hide-submit-compatibility-1939426-16.patch, failed testing.

cockers’s picture

Thanks you jtwalters! Applying patch #16 and clearing the cache works for me too. Can this be committed?

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 16: views-hide-submit-compatibility-1939426-16.patch, failed testing.

cockers’s picture

Does anyone have any idea why this is failing? There are a few reports of this working including myself.

jtwalters’s picture

Status: Needs work » Needs review
sadashiv’s picture

Patch at #16 worked for me.

Thanks,
Sadashiv.

rahim123’s picture

Thanks very much for identifying this incompatibility with hide_submit, I was pulling my hair out on this one. I applied the patch in #16, but it causes an invalid page of raw text output when trying to add a filter group. But it does allow me to hit the back button and then re-open the rearrange screen, where the new filter group has indeed been successfully created.

rahim123’s picture

firewaller’s picture

This works well for me when using the hide_submit module.

krina.addweb’s picture

Issue summary: View changes
rv0’s picture

Status: Needs review » Needs work

If tests break, this needs work.
Also, not sure if this solution is the way to go. Currently I'm using hook_hide_submit_alter on my own site as a clean workaround

ksere’s picture

For anyone who's dealing with the problems described in #11 - #15, I'd try changing the administration theme. The theme I had set (which was the custom theme for the website we coded based on Foundation 5) was causing conflicts with the js. The moment I switched to Shiny for my admin theme, the problem was fixed.

Hope this helps!

j2r’s picture

For me, it didn't work with default core theme as well so I enable the weight changes it will also show the drop-down for moving the filter to another group. That tricks work for me.

mviojan’s picture

Any solution to this? The link "Create new filter group" does not appear at all. I don't have hide_submit module installed. I do have jQuery update installed and Views is updated to the latest version.

simon_tma’s picture

FileSize
1.09 KB

Using the Bootstrap theme, I've managed to track this down to the form using button tags instead of input tags. I've attached a patch that fixes this by changing the selector to not look for input, just the ID or class name.

kookoodshw’s picture

Simply configuring the hide_submit module to "Hide the submit buttons" instead of "Disable the submit buttons" worked for me. I went to Configuration -> Content Authoring -> Hide Submit settings to do this. The settings can also be access via the "Configure" link beside the module on the Modules page.