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 !empty($data['queue_id'])
|
||||
? $this->sendingQueuesRepository->findOneById($data['queue_id'])
|
||||
: $this->sendingQueuesRepository->findOneBy(['newsletter' => $newsletter->getId()]);
|
||||
return isset($data['queue_id']) ? $this->sendingQueuesRepository->findOneById($data['queue_id']) : null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user