Permalink
Browse files

Merge pull request #2608 from gillesbourgeat/fix/mailing-system-form

Fix required fields for form smtp configuration
  • Loading branch information...
gillesbourgeat committed Jan 8, 2019
2 parents d2fe473 + 075ba53 commit 5c7d8aafe2186fae841f0b82b612a50300e7db42
Showing with 8 additions and 0 deletions.
  1. +8 −0 core/lib/Thelia/Form/MailingSystemModificationForm.php
@@ -30,40 +30,48 @@ protected function buildForm()
"label_attr" => array("for" => "enabled_field"),
))
->add("host", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Host"),
"label_attr" => array("for" => "host_field"),
))
->add("port", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Port"),
"label_attr" => array("for" => "port_field"),
))
->add("encryption", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Encryption"),
"label_attr" => array(
"for" => "encryption_field",
"help" => Translator::getInstance()->trans("ssl, tls or empty"),
),
))
->add("username", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Username"),
"label_attr" => array("for" => "username_field"),
))
->add("password", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Password"),
"label_attr" => array("for" => "password_field"),
))
->add("authmode", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Auth mode"),
"label_attr" => array(
"for" => "authmode_field",
"help" => Translator::getInstance()->trans("plain, login, cram-md5 or empty"),
),
))
->add("timeout", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Timeout"),
"label_attr" => array("for" => "timeout_field"),
))
->add("sourceip", "text", array(
"required" => false,
"label" => Translator::getInstance()->trans("Source IP"),
"label_attr" => array("for" => "sourceip_field"),
))

0 comments on commit 5c7d8aa

Please sign in to comment.