Skip to content

Commit

Permalink
Open311 improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnf committed Nov 15, 2016
1 parent 86c4897 commit 0a65683
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ function markaspot_open311_find_locations($parameters) {
$query->fieldCondition('field_latitude', 'value', $parameters['south'], '<=');
$query->fieldCondition('field_longitude', 'value', $parameters['west'], '>=');
$query->fieldCondition('field_longitude', 'value', $parameters['east'], '<=');
<<<<<<< HEAD
=======
watchdog("open311_api", "Search square: " .print_r($parameters,true));
>>>>>>> 8f8d3834b7a41fa421ca7381cf5bd5f734646cf0
}


Expand All @@ -70,8 +66,6 @@ function markaspot_open311_find_locations($parameters) {

$result = $query->execute();

watchdog("open311_api", "Search results: " .print_r($result,true));
if ($result) {
$nodes = array_keys($result['node']);
$nodes = node_load_multiple($nodes);
Expand Down Expand Up @@ -126,15 +120,9 @@ function markaspot_open311_location_map_request($node) {

$location['district'] = $node->field_district[$node->language][0]['value'];

<<<<<<< HEAD
if (isset($node->field_route[$node->language][0]['value'])) $location['route'] = $node->field_route[$node->language][0]['value'];

if (isset($node->field_area[$node->language][0])) $location['area'] = $node->field_area[$node->language][0]['value'];
=======
$location['route'] = $node->field_route[$node->language][0]['value'];

if (isset($node->field_area)) $location['area'] = $node->field_area[$node->language][0]['value'];
>>>>>>> 8f8d3834b7a41fa421ca7381cf5bd5f734646cf0

foreach ($node->field_neighbourhood[$node->language] as $nbh) {
$location['neighbourhood'][] = $nbh['value'];
Expand Down Expand Up @@ -393,7 +381,7 @@ function markaspot_open311_requests_index($page, $parameters) {
}
}
else {
markaspot_open311_process_services_error(t('No service requests found'), 404);
markaspot_open311_process_services_error(t('No service requests found.'), 404);

}

Expand Down

0 comments on commit 0a65683

Please sign in to comment.