Closed (fixed)
Project:
Location
Version:
5.x-3.0-test3
Component:
Location_views
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
4 Oct 2008 at 15:01 UTC
Updated:
23 Oct 2008 at 23:33 UTC
Hi,
I am using the location module with views.
I create nodes and use views with the filter functionality to filter by province.
- I select in the filter "Location: Province Selector"
- expose it.
- use operator =
If I try to filter my node list by province I get the following error:
Fatal error: Call to undefined function dpm() in C:\...\sites\all\modules\location\contrib\location_views\location_views.module on line 826.
I checked the file and I see this code:
dpm('HUH?');
dpm($op);
dpm($filter);
dpm($filterinfo);
dpm($query);
switch ($filterinfo['field']) {
case 'province':
dpm($filter['value']);
$filter['value'] = location_form2api(array('province' => $filter['value']));
$filter['value'] = $filter['value']['province'];
break;
}
$query->ensure_table($filterinfo[table]);
$query->add_where("$filterinfo[table].$filterinfo[field] $filter[operator] '$filter[value]'");
}
do you know how fix this error.
Thanks
Carlo
Comments
Comment #1
bdragon commentedCongratulations, you're the first person to hit that code. Apparently it IS still in use. :P
I'll go fix it up.
Comment #2
bdragon commentedOK, I committed some fixes, it should work OK now.
http://drupal.org/cvs?commit=144721
Comment #3
bdragon commentedI am now periodically grepping for dpm before committing. ;)
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.