Commit 506c9a88 authored by Timmer, Marius's avatar Timmer, Marius

Add file extension; Correct changelogs in the package now.

parent a48195c8
......@@ -147,7 +147,7 @@ sub CreatePDF {
# create first pdf page
$PDFObject->PageNew(
%Page,
FooterRight => $Page{PageText} .' '. $Page{PageCount},
FooterRight => sprintf('%s %s (%s)', $Page{PageText}, $Page{PageCount}, $Ticket{TicketID})
);
$Page{PageCount}++;
......@@ -251,8 +251,13 @@ sub Run {
$Self->Print(sprintf("<red>%s: %s</red>\n", 'Could not find queue', $QueueName));
return $Self->ExitCodeError();
}
my @TicketList = $Self->GetTicketList( QueueID => $QueueID );
if (substr(uc($Filename), -4) ne '.PDF') {
# The filename does not end with the pdf file extension. It will be appended here.
$Filename .= '.pdf';
}
my @TicketList = $Self->GetTicketList( QueueID => $QueueID );
$Self->Print(sprintf("<yellow>%s: \"%s\" #%d [%d tickets]</yellow>\n", 'Exporting all tickets of the queue', $QueueName, $QueueID, scalar(@TicketList)));
my $PDFString;
......
# ExportTicketToPDF - A Plugin for OTRS
# ExportTicketsToPDF - A Plugin for OTRS
## What this plugin does
......
<?xml version="1.0" encoding="utf-8" ?>
<otrs_package version="1.0">
<Name>MultipleTicketExport</Name>
<Version>0.9.3</Version>
<Name>ExportTicketsToPDF</Name>
<Version>1.0.0</Version>
<Framework>5.0.x</Framework>
<Vendor>Westfälische Wilhelms-Universität Münster</Vendor>
<URL>https://www.uni-muenster.de/</URL>
<License>GNU General Public License, version 3</License>
<ChangeLog Version="0.9.0" Date="2016-07-25 17:37:00">Multiple ticket export using the backend implemented.</ChangeLog>
<ChangeLog Version="1.0.0" Date="2016-07-26 16:45:00">Append file extension if not done by the user and print the ticket ids to the pdf document.</ChangeLog>
<ChangeLog Version="0.9.3" Date="2016-07-26 15:25:00">Renamed the plugin from "MultipleTicketExport" to "ExportTicketsToPDF".</ChangeLog>
<ChangeLog Version="0.9.0" Date="2016-07-25 17:37:00">First version of the ExportTicketToPDF plugin which allows to export all tickets of a queue into a pdf file.</ChangeLog>
<Description lang="en">This plugin realizes a multiple export of tickets in a queue.</Description>
<Description lang="de">Dieses Plugin realisiert den mehrfachen Export von Tickets einer Queue.</Description>
<Filelist>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment