Skip to content

Commit 365a558

Browse files
authored
Update ConfigurationForm.php
1 parent 7f095c6 commit 365a558

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

classes/Form/ConfigurationForm.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ public function generate()
129129
],
130130
[
131131
'type' => 'switch',
132-
'label' => $this->module->l('Disable Back Office Tracking'),
133-
'name' => 'GA_TRACK_BACKOFFICE_DISABLED',
134-
'hint' => $this->module->l('Use this option to disable the tracking inside the Back Office'),
132+
'label' => $this->module->l('Enable Back Office Tracking'),
133+
'name' => 'GA_TRACK_BACKOFFICE_ENABLED',
134+
'hint' => $this->module->l('Use this option to enable the tracking inside the Back Office'),
135135
'values' => [
136136
[
137137
'id' => 'ga_track_backoffice',
@@ -176,7 +176,7 @@ public function generate()
176176
$helper->fields_value['GA_USERID_ENABLED'] = Configuration::get('GA_USERID_ENABLED');
177177
$helper->fields_value['GA_CROSSDOMAIN_ENABLED'] = Configuration::get('GA_CROSSDOMAIN_ENABLED');
178178
$helper->fields_value['GA_ANONYMIZE_ENABLED'] = Configuration::get('GA_ANONYMIZE_ENABLED');
179-
$helper->fields_value['GA_TRACK_BACKOFFICE_DISABLED'] = Configuration::get('GA_TRACK_BACKOFFICE_DISABLED');
179+
$helper->fields_value['GA_TRACK_BACKOFFICE_ENABLED'] = Configuration::get('GA_TRACK_BACKOFFICE_ENABLED');
180180

181181
return $helper->generateForm($fields_form);
182182
}
@@ -193,7 +193,7 @@ public function treat()
193193
$gaUserIdEnabled = Tools::getValue('GA_USERID_ENABLED');
194194
$gaCrossdomainEnabled = Tools::getValue('GA_CROSSDOMAIN_ENABLED');
195195
$gaAnonymizeEnabled = Tools::getValue('GA_ANONYMIZE_ENABLED');
196-
$gaTrackBackOffice = Tools::getValue('GA_TRACK_BACKOFFICE_DISABLED');
196+
$gaTrackBackOffice = Tools::getValue('GA_TRACK_BACKOFFICE_ENABLED');
197197

198198
if (!empty($gaAccountId)) {
199199
Configuration::updateValue('GA_ACCOUNT_ID', $gaAccountId);
@@ -217,8 +217,8 @@ public function treat()
217217
}
218218

219219
if (null !== $gaTrackBackOffice) {
220-
Configuration::updateValue('GA_TRACK_BACKOFFICE_DISABLED', (bool) $gaTrackBackOffice);
221-
$treatmentResult .= $this->module->displayConfirmation($this->module->l('Settings for Disable Back Office tracking updated successfully'));
220+
Configuration::updateValue('GA_TRACK_BACKOFFICE_ENABLED', (bool) $gaTrackBackOffice);
221+
$treatmentResult .= $this->module->displayConfirmation($this->module->l('Settings for Enable Back Office tracking updated successfully'));
222222
}
223223

224224
return $treatmentResult;

0 commit comments

Comments
 (0)