Skip to content

Commit 3cad185

Browse files
AdrienClairembaultbtry
authored andcommitted
fix(notifications): missing lang tags
1 parent c940e17 commit 3cad185

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

inc/notificationtargetformanswer.class.php

+7
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ public function addDataForTemplate($event, $options = []) {
7070
$this->data['##formcreator.validation_comment##'] = $this->obj->fields['comment'];
7171
$this->data['##formcreator.validation_link##'] = $link;
7272
$this->data['##formcreator.request_id##'] = $this->obj->fields['id'];
73+
74+
$this->getTags();
75+
foreach ($this->tag_descriptions[NotificationTarget::TAG_LANGUAGE] as $tag => $values) {
76+
if (!isset($this->data[$tag])) {
77+
$this->data[$tag] = $values['label'];
78+
}
79+
}
7380
}
7481

7582
public function getTags() {

0 commit comments

Comments
 (0)