From 52776c14cbeec43aae111893a6efadeebfb21655 Mon Sep 17 00:00:00 2001 From: mgrauer Date: Thu, 4 Feb 2016 15:16:44 +0000 Subject: [PATCH] Correct gmail action from tracker notification --- modules/tracker/Notification.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/tracker/Notification.php b/modules/tracker/Notification.php index 0859a771a..fefa1e4ee 100644 --- a/modules/tracker/Notification.php +++ b/modules/tracker/Notification.php @@ -174,7 +174,7 @@ public function sendEmail($params) $thresholdValue = $notification['value']; $thresholdComparison = $notification['comparison']; $scalarValue = $scalar['value']; - $subject = 'Threshold Alert: '.$producerName.': '.$trendName.' value '.$scalarValue.' '.$thresholdComparison.' '.$thresholdValue; + $subject = 'Threshold Alert: '.$producerName.': '.$trendName; $body = 'Hello,

This email was sent because a submitted scalar value exceeded a threshold that you specified.

'; $body .= 'Community: '.htmlspecialchars($trendDao->getDisplayName(), ENT_QUOTES, 'UTF-8').'
'; $body .= 'Visit the above Trend link to change or disable notifications.
'; $body .= 'Value: '.htmlspecialchars($scalarValue, ENT_QUOTES, 'UTF-8').'
'; - $body .= 'Threshold: '.htmlspecialchars($thresholdComparison, ENT_QUOTES, 'UTF-8').' '.htmlspecialchars($thresholdValue, ENT_QUOTES, 'UTF-8').'
'; + $body .= 'Threshold: '.htmlspecialchars($thresholdComparison, ENT_QUOTES, 'UTF-8').' '.htmlspecialchars($thresholdValue, ENT_QUOTES, 'UTF-8').'
'.PHP_EOL; // Add gmail "View Action". $trendTrackerUrl = $fullUrl.'/'.$this->moduleName.'/trend/view?trendId='.$trendDao->getKey(); - $body .= '
'; - $body .= '
'; - $body .= ' '; - $body .= ' '; - $body .= '
'; - $body .= ' '; - $body .= '
'; + $body .= '
'.PHP_EOL; + $body .= '
'.PHP_EOL; + $body .= ' '.PHP_EOL; + $body .= ' '.PHP_EOL; + $body .= '
'.PHP_EOL; + $body .= ' '.PHP_EOL; + $body .= '
'.PHP_EOL; Zend_Registry::get('notifier')->callback( 'CALLBACK_CORE_SEND_MAIL_MESSAGE',