Revert "Set a fixed default for echo-email-format"

This reverts commit f305c2d778.

Reason for revert: This is not the way of setting the default user
option, the 'default' param for HTMLForm should be filled with the
user's current option.

Similar mistakes happened many times, maybe we should deprecate setting
this param for any field types other than the 'info' type at the
preferences form level.

Bug: T350530
Change-Id: I1d0fce3db4a4228a6adcd9fe12dbc3da7ac0f710
(cherry picked from commit 00f464e0fe)
This commit is contained in:
Func 2024-01-09 18:54:50 +00:00
parent baf78123dc
commit ecb7eea891

View file

@ -317,7 +317,6 @@ class Hooks implements
// Email format // Email format
$preferences['echo-email-format'] = [ $preferences['echo-email-format'] = [
'type' => 'select', 'type' => 'select',
'default' => EmailFormat::HTML,
'label-message' => 'echo-pref-email-format', 'label-message' => 'echo-pref-email-format',
'section' => 'echo/emailsettings', 'section' => 'echo/emailsettings',
'options-messages' => [ 'options-messages' => [