Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue : Detailed admin attachments not set
Dev: saved as admin_detailed_notification not detailed_admin_notification
  • Loading branch information
Shnoulle committed Apr 8, 2019
1 parent b3d1ec8 commit 937323f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/helpers/frontend_helper.php
Expand Up @@ -643,12 +643,12 @@ function sendSubmitNotifications($surveyid)
}
}

$aRelevantAttachments = array();
$aRelevantAttachments = array();
/*
* Iterate through attachments and check them for relevance.
*/
if (isset($aAttachments['detailed_admin_notification'])) {
foreach ($aAttachments['detailed_admin_notification'] as $aAttachment) {
if (isset($aAttachments['admin_detailed_notification'])) {
foreach ($aAttachments['admin_detailed_notification'] as $aAttachment) {
$relevance = $aAttachment['relevance'];
// If the attachment is relevant it will be added to the mail.
if (LimeExpressionManager::ProcessRelevance($relevance) && Yii::app()->is_file($aAttachment['url'],Yii::app()->getConfig('uploaddir').DIRECTORY_SEPARATOR."surveys".DIRECTORY_SEPARATOR.$surveyid,false)) {
Expand Down

0 comments on commit 937323f

Please sign in to comment.