From d357221c667665b26c7817ff7598269d80a2899c Mon Sep 17 00:00:00 2001 From: David Reedy Jr Date: Tue, 29 Dec 2015 17:44:53 -0600 Subject: [PATCH] CRM-17686 extension disable fix, tpl improvement --- CRM/Upgrade/Incremental/php/FourSeven.php | 7 ++++++- templates/CRM/Admin/Form/Job.tpl | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CRM/Upgrade/Incremental/php/FourSeven.php b/CRM/Upgrade/Incremental/php/FourSeven.php index d2628f6620..061913b9af 100644 --- a/CRM/Upgrade/Incremental/php/FourSeven.php +++ b/CRM/Upgrade/Incremental/php/FourSeven.php @@ -381,7 +381,12 @@ FROM `civicrm_dashboard_contact` WHERE 1 GROUP BY contact_id"; * @return bool */ public function disableFlexibleJobsExtension(CRM_Queue_TaskContext $ctx) { - civicrm_api3('Extension', 'disable', array('key' => 'com.klangsoft.flexiblejobs')); + try { + civicrm_api3('Extension', 'disable', array('key' => 'com.klangsoft.flexiblejobs')); + } + catch (CiviCRM_API3_Exception $e) { + // just ignore if the extension isn't installed + } return TRUE; } diff --git a/templates/CRM/Admin/Form/Job.tpl b/templates/CRM/Admin/Form/Job.tpl index ca95cdf714..7d04c17cd8 100644 --- a/templates/CRM/Admin/Form/Job.tpl +++ b/templates/CRM/Admin/Form/Job.tpl @@ -109,7 +109,7 @@ CRM.$(function($) { {$form.scheduled_run_date.label} {$form.scheduled_run_date.html}
{ts}Do not run this job before this date / time. The run frequency selected above will apply thereafter.{/ts}
- {ts}Leave blank to run{/ts} {if $action eq 1}{ts}as soon as possible{/ts}{else}{ts}at next run frequency{/ts}{/if}. + {if $action eq 1}{ts}Leave blank to run as soon as possible.{/ts}{else}{ts}Leave blank to run at next run frequency.{/ts}{/if}
-- 2.25.1