X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FJob.php;h=c9ec3be713e0e7acf0d5f8ed744f048197088034;hb=5563fe43b44b754e6441841a5d92664470b20366;hp=5a18932bc26c4888c5bf72f64e74bc34dbc07d74;hpb=61920c359ebfdc6c5b8bff501bbd420c0f530550;p=civicrm-core.git diff --git a/CRM/Admin/Form/Job.php b/CRM/Admin/Form/Job.php index 5a18932bc2..c9ec3be713 100644 --- a/CRM/Admin/Form/Job.php +++ b/CRM/Admin/Form/Job.php @@ -1,9 +1,9 @@ get('civi_api_kernel'); + $apiRequest = $apiKernel->createRequest($fields['api_entity'], $fields['api_action'], array('version' => 3), NULL); + try { + $apiKernel->resolve($apiRequest); + } catch (\Civi\API\Exception\NotImplementedException $e) { $errors['api_action'] = ts('Given API command is not defined.'); }