Merge branch 'hotfix/4.4.1'

This commit is contained in:
yuri
2017-02-02 12:44:12 +02:00
2 changed files with 6 additions and 1 deletions
@@ -394,6 +394,11 @@ class MassEmail extends \Espo\Services\Record
protected function sendQueueItem(Entity $queueItem, Entity $massEmail, Entity $emailTemplate, $attachmentList = [], $campaign = null, $isTest = false)
{
$queueItemFetched = $this->getEntityManager()->getEntity($queueItem->getEntityType(), $queueItem->id);
if ($queueItemFetched->get('status') !== 'Pending') {
return;
}
$target = $this->getEntityManager()->getEntity($queueItem->get('targetType'), $queueItem->get('targetId'));
if (!$target || !$target->id || !$target->get('emailAddress')) {
$queueItem->set('status', 'Failed');
+1 -1
View File
@@ -18,7 +18,7 @@
{{/each}}
</div>
<div class="col-md-5">
<iframe src="{{iframeUrl}}" style="width: 100%; height: 870px;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
<iframe src="{{iframeUrl}}" style="width: 100%; height: 874px;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
</div>
</div>