Skip to content
Snippets Groups Projects
Commit 4d9851f6 authored by eileen's avatar eileen
Browse files

event#19 remove obsolete scriptFee & scriptArray

event#19 (comment 25984)

Both @mattwire & myself determined these are obsolete, unused parameters, removing
parent 376cb376
Branches
Tags
No related merge requests found
......@@ -174,9 +174,6 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
$button = substr($this->controller->getButtonName(), -4);
$this->add('hidden', 'scriptFee', NULL);
$this->add('hidden', 'scriptArray', NULL);
if ($this->_values['event']['is_monetary']) {
CRM_Event_Form_Registration_Register::buildAmount($this);
}
......
......@@ -343,9 +343,6 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
$this->assign('display_name', CRM_Contact_BAO_Contact::displayName($contactID));
}
$this->add('hidden', 'scriptFee', NULL);
$this->add('hidden', 'scriptArray', NULL);
$bypassPayment = $allowGroupOnWaitlist = $isAdditionalParticipants = FALSE;
if ($this->_values['event']['is_multiple_registrations']) {
// don't allow to add additional during confirmation if not preregistered.
......
......@@ -50,8 +50,6 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
'billing_state_province_id-5' => '1061',
'billing_postal_code-5' => '7',
'billing_country_id-5' => '1228',
'scriptFee' => '',
'scriptArray' => '',
'priceSetId' => '6',
'price_7' => [
13 => 1,
......@@ -264,8 +262,6 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
'first_name' => 'Participant2',
'last_name' => 'LastName',
'email-Primary' => 'participant2@example.com',
'scriptFee' => '',
'scriptArray' => '',
'campaign_id' => NULL,
'is_pay_later' => 1,
'participant_role_id' => '1',
......@@ -280,8 +276,6 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
'first_name' => 'Participant3',
'last_name' => 'LastName',
'email-Primary' => 'participant3@example.com',
'scriptFee' => '',
'scriptArray' => '',
'campaign_id' => NULL,
'is_pay_later' => 1,
'participant_role_id' => '1',
......@@ -376,8 +370,6 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
'ip_address' => '127.0.0.1',
'invoiceID' => '57adc34957a29171948e8643ce906332',
'button' => '_qf_Register_upload',
'scriptFee' => '',
'scriptArray' => '',
],
],
]);
......@@ -457,8 +449,6 @@ class CRM_Event_Form_Registration_ConfirmTest extends CiviUnitTestCase {
'billing_state_province_id-5' => '1061',
'billing_postal_code-5' => '7',
'billing_country_id-5' => '1228',
'scriptFee' => '',
'scriptArray' => '',
'priceSetId' => '6',
'price_7' => [
13 => 1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment