Skip to content

Commit

Permalink
fix(notifications): missing lang tags
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienClairembault authored and btry committed Mar 6, 2023
1 parent c940e17 commit 3cad185
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/notificationtargetformanswer.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ public function addDataForTemplate($event, $options = []) {
$this->data['##formcreator.validation_comment##'] = $this->obj->fields['comment'];
$this->data['##formcreator.validation_link##'] = $link;
$this->data['##formcreator.request_id##'] = $this->obj->fields['id'];

$this->getTags();
foreach ($this->tag_descriptions[NotificationTarget::TAG_LANGUAGE] as $tag => $values) {
if (!isset($this->data[$tag])) {
$this->data[$tag] = $values['label'];
}
}
}

public function getTags() {
Expand Down

0 comments on commit 3cad185

Please sign in to comment.