From 9685e87ac0a769935d14961e4284b585ff7d36a0 Mon Sep 17 00:00:00 2001 From: mzd Date: Wed, 30 Apr 2014 17:48:54 -0400 Subject: [PATCH] CRM-14353 - replacing formNavigate.tpl in-progress ---------------------------------------- * CRM-14353: Fix formNavigate to work with multiple forms & ajax https://issues.civicrm.org/jira/browse/CRM-14353 --- CRM/Case/Form/Case.php | 2 ++ templates/CRM/Case/Form/Case.tpl | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Case/Form/Case.php b/CRM/Case/Form/Case.php index ff4814dbc3..64eb2f7074 100644 --- a/CRM/Case/Form/Case.php +++ b/CRM/Case/Form/Case.php @@ -39,6 +39,8 @@ */ class CRM_Case_Form_Case extends CRM_Core_Form { + protected $unsavedChangesWarn = TRUE; + /** * The context * diff --git a/templates/CRM/Case/Form/Case.tpl b/templates/CRM/Case/Form/Case.tpl index 4147889e25..6bb161de37 100644 --- a/templates/CRM/Case/Form/Case.tpl +++ b/templates/CRM/Case/Form/Case.tpl @@ -147,7 +147,5 @@
{include file="CRM/common/formButtons.tpl" location="bottom"}
-{* include jscript to warn if unsaved form field changes *} -{include file="CRM/common/formNavigate.tpl"} {/if} -- 2.25.1