Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10224

Job Form uses deprecated api functions

    Details

      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

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 minute
                1m
                Remaining:
                Remaining Estimate - 1 minute
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified