Guys,

I was trying to setup a Views exposed filter using the distance/proximity filter. I was prompted with the following error.

Undefined index: user_location_choose in location_views_handler_filter_proximity->exposed_form()

Kindly advise. Many thanks!

Regards,
Chang

Comments

ccheu’s picture

Sorry, the complete error message is as follows:

Notice: Undefined index: user_location_choose in location_views_handler_filter_proximity->exposed_form() (line 239 of /public_html/sites/all/modules/location/handlers/location_views_handler_filter_proximity.inc)

Thanks.

rooby’s picture

Title: Undefined index - exposed form for proximity filter » gmap_macro & user_location_choose options for proximity filter don't work

Technical explanation so I remember when I come back to this:

For views handlers that implement the function expose_form_left(), the options defined in the function are either not saved or are saved somewhere else so aren't there when we try to use them.

ccheu’s picture

Thank you in advance rooby for looking into this. Cheers!

rooby’s picture

Status: Active » Fixed

I have committed a fix for this now.
http://drupal.org/cvs?commit=502428

ccheu’s picture

Rooby,

Thanks very much for the fix. I can confirm that the fix in 502428 works. Cheers!!

But an interesting issue has now surfaced:
http://drupal.org/node/1066736

Thanks once again!

Regards,
Chang

Status: Fixed » Closed (fixed)

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