From 86c0d461f6031c901e24e268a5392f9c7f29a2ea Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Fri, 22 May 2015 11:19:09 +0100 Subject: [PATCH] CRM-16546 Event registration navigation warning --- CRM/Event/Form/Registration/AdditionalParticipant.php | 1 + CRM/Event/Form/Registration/Register.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CRM/Event/Form/Registration/AdditionalParticipant.php b/CRM/Event/Form/Registration/AdditionalParticipant.php index e77b915889..5c46aa8d0d 100644 --- a/CRM/Event/Form/Registration/AdditionalParticipant.php +++ b/CRM/Event/Form/Registration/AdditionalParticipant.php @@ -370,6 +370,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R } $this->addButtons($buttons); $this->addFormRule(array('CRM_Event_Form_Registration_AdditionalParticipant', 'formRule'), $this); + $this->unsavedChangesWarn = TRUE; } /** diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 8611fd155c..33fc16c1de 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -548,6 +548,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { } $this->addFormRule(array('CRM_Event_Form_Registration_Register', 'formRule'), $this); + $this->unsavedChangesWarn = TRUE; // add pcp fields if ($this->_pcpId) { -- 2.25.1