Commit 46733991 authored by Fabio Stegmeyer's avatar Fabio Stegmeyer
Browse files

[TASK] Remove double points in table mail markup

parent 31d8a763
......@@ -1006,17 +1006,17 @@ class MailTemplateService {
}
if (\is_string($value)) {
$allMarker .= '<tr><th>' . $key . ': </th><td> ' . $value . '</td></tr>';
$allMarker .= '<tr><th>' . $key . ' </th><td> ' . $value . '</td></tr>';
} elseif (\is_array($value)) {
foreach ($value as $innerKey => $innerValue) {
$allMarker .= '<tr><th>' . $key . '.' . $innerKey . ': </th><td> ' . $innerValue . '</td></tr>';
$allMarker .= '<tr><th>' . $key . '.' . $innerKey . ' </th><td> ' . $innerValue . '</td></tr>';
}
} elseif (\is_bool($value)) {
$valueAsString = $value ? 'true' : 'false';
$allMarker .= '<tr><th>' . $key . ': </th><td> ' . $valueAsString . '</td></tr>';
$allMarker .= '<tr><th>' . $key . ' </th><td> ' . $valueAsString . '</td></tr>';
} elseif (\is_object($value)) {
if (\method_exists($value, '__toString')) {
$allMarker .= '<tr><th>' . $key . ': </th><td> ' . $value->__toString() . '</td></tr>';
$allMarker .= '<tr><th>' . $key . ' </th><td> ' . $value->__toString() . '</td></tr>';
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment