Only add in the additional metadata if we are also adding them to the form
[civicrm-core.git] / CRM / Core / LegacyErrorHandler.php
index 57b8c80e6852f443cd54468c5ed3dda5f9ca320f..ae0f1f9859351ac4be8a127edc2003fb2676b575 100644 (file)
@@ -1,6 +1,10 @@
 <?php
 
+/**
+ * Class CRM_Core_LegacyErrorHandler
+ */
 class CRM_Core_LegacyErrorHandler {
+
   /**
    * @param \Civi\Core\Event\UnhandledExceptionEvent $event
    * @throws Exception
@@ -23,6 +27,7 @@ class CRM_Core_LegacyErrorHandler {
       // you should log a ticket for it to be removed with details about the form you were on.
       if (!empty($params['legacy_redirect_path'])) {
         if (CRM_Utils_System::isDevelopment()) {
+          $intentionalENotice = "How did you get HERE?! - Please log in JIRA";
           // here we could set a message telling devs to log it per above
         }
         CRM_Utils_System::redirect($params['legacy_redirect_path'], $params['legacy_redirect_query']);