Skip to content
Snippets Groups Projects
Commit 142a5b1b authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

[BUGFIX] Follow-Up without files

parent 975e60c2
No related branches found
No related tags found
No related merge requests found
......@@ -228,17 +228,28 @@ class JoblistController extends ActionController {
$mailService->setIgnoreMailQueue(TRUE);
// add attachments for each file
$originalResource = $applyData->getCoverLetter()->getOriginalResource();
if ($originalResource) {
$this->addAttachmentsToMail($originalResource, $mailService);
$coverLetter = $applyData->getCoverLetter();
if ($coverLetter) {
$originalResource = $coverLetter->getOriginalResource();
if ($originalResource) {
$this->addAttachmentsToMail($originalResource, $mailService);
}
}
$originalResource = $applyData->getCertificate()->getOriginalResource();
if ($originalResource) {
$this->addAttachmentsToMail($originalResource, $mailService);
$cv = $applyData->getCv();
if ($cv) {
$originalResource = $cv->getOriginalResource();
if ($originalResource) {
$this->addAttachmentsToMail($originalResource, $mailService);
}
}
$originalResource = $applyData->getCv()->getOriginalResource();
if ($originalResource) {
$this->addAttachmentsToMail($originalResource, $mailService);
$certificate = $applyData->getCertificate();
if ($certificate) {
$originalResource = $certificate->getOriginalResource();
if ($originalResource) {
$this->addAttachmentsToMail($originalResource, $mailService);
}
}
$mailService->sendEmail();
......@@ -348,6 +359,7 @@ class JoblistController extends ActionController {
];
try {
GeneralUtility::mkdir_deep(\dirname($filePath));
$file = fopen($filePath, 'wb+');
fputcsv($file, $dataToInsertArr);
fclose($file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment