CRM-16546 Event registration navigation warning
authorJKingsnorth <john@johnkingsnorth.co.uk>
Fri, 22 May 2015 10:19:09 +0000 (11:19 +0100)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Fri, 22 May 2015 10:19:09 +0000 (11:19 +0100)
CRM/Event/Form/Registration/AdditionalParticipant.php
CRM/Event/Form/Registration/Register.php

index e77b9158893b3b36edcad3f23ac015fd87981522..5c46aa8d0d285e5afffe165a9b21fdbe9cf8edc2 100644 (file)
@@ -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;
   }
 
   /**
index 8611fd155c5b11031f7248f229dc160cd4848693..33fc16c1dea7465c13e9b260ddac3ebddc8a4bdb 100644 (file)
@@ -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) {