Skip to content

Commit

Permalink
Address modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
jolelievre committed Jun 11, 2019
1 parent 4d7accc commit 2844873
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions classes/ValidateConstraintTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public function translate($validator)
'Shop.Forms.Errors'
) . PHP_EOL .
$this->translator->trans(
'The following characters are not accepted: / \ ^ * `',
'Invalid characters: 0-9!<>,;?=+()@#"°{}_$%/\^*`',
[],
'Shop.Forms.Errors'
) . PHP_EOL .
$this->translator->trans(
'The characters . and 。 are allowed only if they are directly followed by a space or the end of the string.',
'A space is required after . and 。',
[],
'Shop.Forms.Errors'
);
Expand Down
8 changes: 0 additions & 8 deletions classes/form/CustomerFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ public function getFormat()
'Shop.Forms.Labels'
)
)
->addAvailableValue(
'comment',
$this->translator->trans("Not accepted: / \ ^ * `\nA space is necessary after a \".\"", [], 'Shop.Forms.Help')
)
->setRequired(true);

$format['lastname'] = (new FormField())
Expand All @@ -137,10 +133,6 @@ public function getFormat()
'Shop.Forms.Labels'
)
)
->addAvailableValue(
'comment',
$this->translator->trans("Not accepted: / \ ^ * `\nA space is necessary after a \".\"", [], 'Shop.Forms.Help')
)
->setRequired(true);

if (Configuration::get('PS_B2B_ENABLE')) {
Expand Down
2 changes: 1 addition & 1 deletion themes/classic/templates/_partials/form-fields.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
>
{if isset($field.availableValues.comment)}
<span class="form-control-comment">
{$field.availableValues.comment|nl2br nofilter}
{$field.availableValues.comment}
</span>
{/if}
{/block}
Expand Down

0 comments on commit 2844873

Please sign in to comment.