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.

Comments

apaderno created an issue. See original summary.

  • apaderno committed f0d9aed8 on 2.0.x
    Issue #3392454: The "Save to sent items" value is not saved
    

  • apaderno committed fda4f250 on 1.0.x
    Issue #3392454: The "Save to sent items" value is not saved
    
avpaderno’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.