Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.1
-
Fix Version/s: 4.2.0
-
Component/s: CiviCRM API, Core CiviCRM
Description
The Job Form uses civicrm_api_include and civicrm_api_get_function_name calls, which are deprecated.
This patch replaces these calls with a call to _civicrm_api_resolve.
This also has the beneficial effect of allowing custom api calls to be scheduled just like other jobs:
- create <custom_php>/api/Job/myAction.php
- create a new job in the scheduler with parameters 'civicrm_api3", 'Job', 'my_action'
Patch for: CRM/Admin/Form/Job.php