From 3b90be4122ff0df1f23de74f31a9e25331fc9015 Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 21 Apr 2016 10:44:43 -0400 Subject: [PATCH] - Fixes scheduling of notifications --- lib/Router/SendingQueue.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Router/SendingQueue.php b/lib/Router/SendingQueue.php index e414d3e34f..f9024a82dc 100644 --- a/lib/Router/SendingQueue.php +++ b/lib/Router/SendingQueue.php @@ -54,6 +54,7 @@ class SendingQueue { ->where('newsletter_type', 'notification') ->findOne(); $relation = NewsletterOption::where('option_field_id', $option_field->id) + ->where('newsletter_id', $newsletter->id) ->findOne(); if(!$relation) { $relation = NewsletterOption::create();