Skip to content

Commit

Permalink
OPENEUROPA-1500: Small improvement on submitForm.
Browse files Browse the repository at this point in the history
  • Loading branch information
nagyad committed Jan 10, 2019
1 parent 114f7d9 commit 8a0d469
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public function buildForm(array $form, FormStateInterface $form_state) {
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->config(static::CONFIGNAME)
->set('siteID', $form_state->getValues()['siteID'])
->set('sitePath', $form_state->getValues()['sitePath'])
->set('instance', $form_state->getValues()['instance'])
->set('siteID', $form_state->getValue('siteID'))
->set('sitePath', $form_state->getValue('sitePath'))
->set('instance', $form_state->getValue('instance'))
->save();
parent::submitForm($form, $form_state);
}
Expand Down

0 comments on commit 8a0d469

Please sign in to comment.