The "Save to sent items" value is not saved

Created on 8 October 2023, about 1 year ago

MailSettingsForm::submitForm() uses the following code.

    parent::submitForm($form, $form_state);

    $this->config('graph_mail.settings')
      ->set('tenant_id', $form_state->getValue('tenant_id'))
      ->set('client_id', $form_state->getValue('client_id'))
      ->set('client_secret', $form_state->getValue('client_secret'))
      ->set('user_id', $form_state->getValue('user_id'))
      ->set('version', $form_state->getValue('version'))
      ->set('default_mail', $form_state->getValue('default_mail'))
      ->save();

It does not save the value for Save to sent items, which is submitted in the $form['save_to_sent_items'] form element.

The same bug is present in the 1.0.x branch.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇹Italy apaderno Brescia, 🇮🇹

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024