CRM-16502 - fix type assignments in Geocode Job.
authorDave Greenberg <dave@civicrm.org>
Wed, 13 May 2015 21:02:01 +0000 (14:02 -0700)
committerDave Greenberg <dave@civicrm.org>
Wed, 13 May 2015 21:02:01 +0000 (14:02 -0700)
----------------------------------------
* CRM-16502: Geocoder scheduled job incorrect API parameters
  https://issues.civicrm.org/jira/browse/CRM-16502

api/v3/Job.php

index 380621b6ae5f0ba0cd13a523427fdabde528b8d5..e83539f3b091f54acb8f357edd844a9f444f1653 100644 (file)
@@ -140,12 +140,12 @@ function civicrm_api3_job_geocode($params) {
  */
 function _civicrm_api3_job_geocode_spec(&$params) {
   $params['start'] = array(
-    'title' => 'Start Date',
-    'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
+    'title' => 'Starting Contact ID',
+    'type' => CRM_Utils_Type::T_INT,
   );
   $params['end'] = array(
-    'title' => 'End Date',
-    'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
+    'title' => 'Ending Contact ID',
+    'type' => CRM_Utils_Type::T_INT,
   );
   $params['geocoding'] = array(
     'title' => 'Geocode address?',