Commit 207f443f authored by Johannes's avatar Johannes Committed by Johannes

Add names to region ids

parent bb30d314
......@@ -128,8 +128,14 @@ final class RegionXhr extends Control
$recipient = ['[email protected]', '[email protected]'];
$groupName = $this->regionGateway->getRegionName($groupId);
$idStructure = $this->regionGateway->listRegionsIncludingParents([$groupId]);
$idStructure = implode('<br>', $idStructure);
$messageText = $this->translationHelper->sv('message_text_to_group_admin_workgroup', ['groupId' => $groupId, 'idStructure' => $idStructure, 'groupName' => $groupName]);
$idStructureList = [];
foreach ($idStructure as $id) {
$idStructureList[] = '' . $id . ' - ' . $this->regionGateway->getRegionName($id) . '';
}
$idStructureList = implode('<br>', $idStructureList);
$messageText = $this->translationHelper->sv('message_text_to_group_admin_workgroup', ['groupId' => $groupId, '$idStructureList' => $idStructureList, 'groupName' => $groupName]);
$this->emailHelper->tplMail('general/workgroup_contact', $recipient, [
'gruppenname' => $groupName,
......
Markdown is supported
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