fix: maintain original variable
This commit is contained in:
@@ -29,11 +29,12 @@ class InvoicePdfController 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('Honorarnote_%s_%s.pdf', $teamer, $disposition->getAssignment()->getDestination());
|
$filename = sprintf('Honorarnote_%s_%s.pdf', $teamerPart, $disposition->getAssignment()->getDestination());
|
||||||
$contentDisposition = HeaderUtils::makeDisposition(
|
$contentDisposition = HeaderUtils::makeDisposition(
|
||||||
HeaderUtils::DISPOSITION_ATTACHMENT,
|
HeaderUtils::DISPOSITION_ATTACHMENT,
|
||||||
$filename,
|
$filename,
|
||||||
|
|||||||
Reference in New Issue
Block a user