fix: improper use of variable
This commit is contained in:
@@ -29,11 +29,12 @@ class ContractPdfController extends AbstractController
|
|||||||
|
|
||||||
$slugger = new AsciiSlugger('de');
|
$slugger = new AsciiSlugger('de');
|
||||||
|
|
||||||
$teamer = $slugger->slug($disposition->getTeamer());
|
$teamer = $disposition->getTeamer();
|
||||||
|
$teamerPart = $slugger->slug($teamer);
|
||||||
$assignment = $disposition->getAssignment();
|
$assignment = $disposition->getAssignment();
|
||||||
$destination = $slugger->slug($assignment->getDestination());
|
$destination = $slugger->slug($assignment->getDestination());
|
||||||
|
|
||||||
$filename = sprintf('Honorarvertrag_%s_%s.pdf', $teamer, $destination);
|
$filename = sprintf('Honorarvertrag_%s_%s.pdf', $teamerPart, $destination);
|
||||||
$disposition = HeaderUtils::makeDisposition(
|
$disposition = HeaderUtils::makeDisposition(
|
||||||
HeaderUtils::DISPOSITION_ATTACHMENT,
|
HeaderUtils::DISPOSITION_ATTACHMENT,
|
||||||
$filename,
|
$filename,
|
||||||
@@ -47,7 +48,7 @@ class ContractPdfController extends AbstractController
|
|||||||
|
|
||||||
$this->logger->info('Create teamer contract', [
|
$this->logger->info('Create teamer contract', [
|
||||||
'teamer_id' => $teamer->getId(),
|
'teamer_id' => $teamer->getId(),
|
||||||
'teamer_name' => (string) $teamer,
|
'teamer_name' => (string) $teamerPart,
|
||||||
'assignment_id' => $assignment->getId(),
|
'assignment_id' => $assignment->getId(),
|
||||||
'destination' => (string) $destination,
|
'destination' => (string) $destination,
|
||||||
]);
|
]);
|
||||||
|
|||||||
Reference in New Issue
Block a user