Skip to content

Commit

Permalink
Fixed issue #18047: Conditional filters attachments for confirmation …
Browse files Browse the repository at this point in the history
…mail doesn't work (#2367)

Dev: adding lost checking of relevance …
Dev: clearly view conduition don't need {}
  • Loading branch information
Shnoulle committed May 2, 2022
1 parent d952cd8 commit 7a5e68d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/core/LimeMailer.php
Expand Up @@ -715,7 +715,7 @@ public function addAttachementsByType()
LimeExpressionManager::singleton()->loadTokenInformation($this->surveyId, $this->oToken->token);
}
foreach ($aAttachments[$attachementType] as $aAttachment) {
if ($this->attachementExists($aAttachment)) {
if ($this->attachementExists($aAttachment) && LimeExpressionManager::ProcessRelevance($aAttachment['relevance'])) {
$this->addAttachment($aAttachment['url']);
}
}
Expand Down
Expand Up @@ -92,11 +92,13 @@
<div class='modal-content'>
<div class='modal-header'>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span>&times;</span></button>
<h4 class="modal-title"><?php eT("Condition");?></h4>
<label for='attachment-relevance-condition' class="h4 modal-title"><?php eT("Condition");?></label>
</div>
<div class='modal-body'>
<div class='form-group'>
<textarea class='form-control'></textarea>
<div class='input-group'>
<div class="input-group-addon">{</div>
<textarea class='form-control' id='attachment-relevance-condition'></textarea>
<div class="input-group-addon">}</div>
</div>
</div>
<div class='modal-footer'>
Expand Down

0 comments on commit 7a5e68d

Please sign in to comment.