Also fix the isRepeatingEvent one
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 25 Aug 2023 01:25:52 +0000 (13:25 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 25 Aug 2023 01:25:52 +0000 (13:25 +1200)
CRM/Event/Form/ManageEvent.php

index 86551920428bc7dded4edbd09c08ce5401e03f28..98caf9e9ffc2961cf5d51e831940ff6687249dfd 100644 (file)
@@ -166,11 +166,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form {
 
     $this->_templateId = (int) CRM_Utils_Request::retrieve('template_id', 'Integer', $this);
 
-    //Is a repeating event
-    if ($this->_isRepeatingEvent) {
-      $isRepeatingEntity = TRUE;
-      $this->assign('isRepeatingEntity', $isRepeatingEntity);
-    }
+    $this->assign('isRepeatingEntity', $this->_isRepeatingEvent);
 
     // CRM-16776 - show edit/copy/create buttons for Profiles if user has required permission.
     $ufGroups = CRM_Core_PseudoConstant::get('CRM_Core_DAO_UFField', 'uf_group_id');