From 0bebd8fb3684a1af36c96a58f71e6cc0ed8c52c6 Mon Sep 17 00:00:00 2001 From: nauman-coeus Date: Fri, 2 Apr 2021 17:40:39 +0500 Subject: [PATCH] PD-380 accept Terms and Conditions by default --- Model/System/Config/Source/TermsAndConditions.php | 6 +++--- etc/adminhtml/system.xml | 2 +- etc/config.xml | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Model/System/Config/Source/TermsAndConditions.php b/Model/System/Config/Source/TermsAndConditions.php index 91660b4..871d246 100644 --- a/Model/System/Config/Source/TermsAndConditions.php +++ b/Model/System/Config/Source/TermsAndConditions.php @@ -24,8 +24,8 @@ class TermsAndConditions implements ArrayInterface public function toOptionArray() { return [ - ['value' => true, 'label' => 'Yes'], - ['value' => false, 'label' => 'No'], + ['value' => '1', 'label' => 'Yes'], + ['value' => '0', 'label' => 'No'], ]; } -} \ No newline at end of file +} diff --git a/etc/adminhtml/system.xml b/etc/adminhtml/system.xml index 89e3ca9..672cb1b 100644 --- a/etc/adminhtml/system.xml +++ b/etc/adminhtml/system.xml @@ -6,7 +6,7 @@ -
ekomi diff --git a/etc/config.xml b/etc/config.xml index bc42544..989accd 100644 --- a/etc/config.xml +++ b/etc/config.xml @@ -8,10 +8,11 @@ 0 status 10 + 1 0 - \ No newline at end of file +