Remove irrelevant code.
authoreileen <emcnaughton@wikimedia.org>
Mon, 20 Jan 2020 20:05:16 +0000 (09:05 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 22 Jan 2020 06:05:14 +0000 (19:05 +1300)
In making this fn non-static we established it is only called from this  function  so
this cannot be true

CRM/Event/Form/Participant.php
templates/CRM/Event/Form/Participant.tpl

index 365a19bbde0eb31b346084d764a62413700620ea..f4e5570af7337546ee194bb065f0294dbbd82490 100644 (file)
@@ -1670,15 +1670,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
       $form->addElement('hidden', 'hidden_eventFullMsg', $eventfullMsg, ['id' => 'hidden_eventFullMsg']);
     }
 
-    if ($form->_pId) {
-      if (CRM_Core_DAO::getFieldValue('CRM_Event_DAO_ParticipantPayment',
-        $form->_pId, 'contribution_id', 'participant_id'
-      )
-      ) {
-        $form->_online = !$form->isBackOffice;
-      }
-    }
-
     if ($form->_isPaidEvent) {
       $params = ['id' => $form->_eventId];
       CRM_Event_BAO_Event::retrieve($params, $event);
@@ -1716,10 +1707,6 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
           FALSE,
           ['class' => "crm-select2"]
         );
-
-        if ($form->_online) {
-          $element->freeze();
-        }
       }
       if (CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()
         && !CRM_Utils_Array::value('fee', $form->_values)
index 19edcb477454d9a21947c2b7ac5d573510ad2671..9cded07e8e165e6873bd54fddfb01ca58c5f1629 100644 (file)
           {if $urlPathVar}
           dataUrl += '&' + '{$urlPathVar}';
           {/if}
-          {if $isBackOffice}
-            dataUrl += '&' + 'is_backoffice=1';
-          {/if}
+          dataUrl += '&' + 'is_backoffice=1';
 
           {literal}
           var eventId = $('[name=event_id], #event_id', $form).val();