Remove fallback to fetch any sending queue for a preview when no queue ID set
[MAILPOET-5206]
This commit is contained in:
@@ -115,8 +115,6 @@ class ViewInBrowserController {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return !empty($data['queue_id'])
|
return isset($data['queue_id']) ? $this->sendingQueuesRepository->findOneById($data['queue_id']) : null;
|
||||||
? $this->sendingQueuesRepository->findOneById($data['queue_id'])
|
|
||||||
: $this->sendingQueuesRepository->findOneBy(['newsletter' => $newsletter->getId()]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user