excluding deleted preorders in Preordernotification
This commit is contained in:
@@ -363,6 +363,7 @@ class PreordernotificationController extends mfBaseController {
|
||||
// get and save preorder count
|
||||
$preorder_filter = json_decode($notification->preorder_filter, true);
|
||||
$preorder_filter['preordercampaign_id'] = $notification->preordercampaign_id;
|
||||
$preorder_filter['deleted'] = null;
|
||||
$preorder_count = PreorderModel::count($preorder_filter);
|
||||
$notification->recipient_count = $preorder_count;
|
||||
$notification->save();
|
||||
|
||||
Reference in New Issue
Block a user