I am facing these errors while trying to choose any dynamic fields from the filter and the main function seems to work proper:
Notice: Undefined index: field_house в функции views_handler_filter_dynamic_fields->pre_query_no_sort() (строка 377 в файле sites/all/modules/views_dynamic_fields/handlers/views_handler_filter_dynamic_fields.inc).
Notice: Undefined index: field_office в функции views_handler_filter_dynamic_fields->pre_query_no_sort() (строка 377 в файле sites/all/modules/views_dynamic_fields/handlers/views_handler_filter_dynamic_fields.inc).

Please someone.. maybe a patch or something :)
This is absolutely amazing module we all need it for d7! Is there a way to enforce the development?
Thanks in advance!

CommentFileSizeAuthor
#1 views_dynamic_fields_missing_index_1369322_1.patch943 bytesAnonymous (not verified)

Comments

rootical’s picture

Issue summary: View changes

Notice: Undefined index: exposed в функции views_handler_filter_dynamic_fields->value_form() (строка 213 в файле /home/u3472/domains/detect.by/sites/all/modules/views_dynamic_fields/handlers/views_handler_filter_dynamic_fields.inc).

rootical’s picture

Issue summary: View changes

Notice: Undefined index: exposed в функции views_handler_filter_dynamic_fields->value_form() (строка 213 в файле /home/u3472/domains/detect.by/sites/all/modules/views_dynamic_fields/handlers/views_handler_filter_dynamic_fields.inc).

Anonymous’s picture

Attached is a patch to solve the undefined index problem in the views handler.

rootical’s picture

Status: Active » Fixed

You are so kind! Thanks! Hope you will add this patch to the dev version. The module is great and very useful!

pixelsweatshop’s picture

Title: Errors while using filters » Errors while using filters (patch)
Status: Fixed » Reviewed & tested by the community

Works like a charm. Thanks kevee.

girishmuraly, if you have some time, do you think you could commit this to the 7.x-dev?

girishmuraly’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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

pixelsweatshop’s picture

Status: Closed (fixed) » Needs review

Errors are still showing up.

SemasPing’s picture

I have this errors when checked "Remember the last selection"

Notice: Undefined index: combined в функции views_handler_filter_dynamic_fields->pre_query() (строка 341 в файле C:\Users\1\Sites\acquia-drupal\sites\all\modules\views_dynamic_fields\handlers\views_handler_filter_dynamic_fields.inc).
Notice: Undefined index: field_names в функции views_handler_filter_dynamic_fields->value_form() (строка 218 в файле C:\Users\1\Sites\acquia-drupal\sites\all\modules\views_dynamic_fields\handlers\views_handler_filter_dynamic_fields.inc).

rooby’s picture

Title: Errors while using filters (patch) » Undefined index error in pre_query_no_sort()
Status: Needs review » Active

I have also still seen this error.
(the original error, not the one in #7, which is a different one and probably should have a different issue.)

I saw it when I added the same field twice.

To reproduce:
* Create a view
* Add some fields, adding Node: Title twice
* Add the filter, making sure that Node: Title is one of the options
* Go to the view and make sure Node: Title is a selected field.
* Error.

rooby’s picture

Actually, there is no problem with adding two of the same fields.

My problem was that I added a bunch of fields at once to my view.
Views sometimes skips the settings step of adding fields when you do a lot at once.
In this case the field is not added properly and it messes with this module.
If you save the field again, then add it properly to the filter options, it works as expected.

This issue could pop up in a few places in the code where it uses variables as array keys without checking isset() first.

I will make a patch to fix it when I get a little time.

rooby’s picture

Issue summary: View changes

[editing to remove a strange drupal.org migration comment that I'm pretty sure I didn't write]

donSchoe’s picture

Issue summary: View changes
Status: Active » Needs work
donSchoe’s picture

Assigned: Unassigned » donSchoe

I can reproduce this behaviour, did you see anything what this may caused?

Will look into it later.

donSchoe’s picture

Status: Needs work » Fixed

Fixed, please try out the latest version and reopen this ticket if the issue still persists.

Status: Fixed » Closed (fixed)

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