add dcc requirement to dcc fields

This commit is contained in:
David Remer 2020-09-03 08:43:03 +03:00
parent 2678d33d9c
commit 4163af8a47
2 changed files with 10 additions and 4 deletions

View file

@ -293,7 +293,9 @@ return array(
'type' => 'checkbox', 'type' => 'checkbox',
'default' => false, 'default' => false,
'gateway' => 'dcc', 'gateway' => 'dcc',
'requirements' => array(), 'requirements' => array(
'dcc',
),
'screens' => array( 'screens' => array(
State::STATE_ONBOARDED, State::STATE_ONBOARDED,
), ),
@ -310,7 +312,9 @@ return array(
'screens' => array( 'screens' => array(
State::STATE_ONBOARDED, State::STATE_ONBOARDED,
), ),
'requirements' => array(), 'requirements' => array(
'dcc',
),
'gateway' => 'dcc', 'gateway' => 'dcc',
), ),
'description' => array( 'description' => array(
@ -347,7 +351,9 @@ return array(
'screens' => array( 'screens' => array(
State::STATE_ONBOARDED, State::STATE_ONBOARDED,
), ),
'requirements' => array(), 'requirements' => array(
'dcc',
),
'gateway' => 'dcc', 'gateway' => 'dcc',
), ),
'intent' => array( 'intent' => array(

View file

@ -79,7 +79,7 @@ class Settings implements ContainerInterface {
*/ */
public function reset(): bool { public function reset(): bool {
$this->load(); $this->load();
$this->settings = []; $this->settings = array();
return true; return true;
} }