From: JKingsnorth Date: Fri, 22 May 2015 10:19:09 +0000 (+0100) Subject: CRM-16546 Event registration navigation warning X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=86c0d461f6031c901e24e268a5392f9c7f29a2ea;p=civicrm-core.git CRM-16546 Event registration navigation warning --- 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) {