diff --git a/ChangeLog b/ChangeLog index a245cf69f3..6587fc3ec9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog 4.2.10.0 (not yet released) - bug #4361 Can't change font size (when config.inc.php not present) - bug #4542 Tab key in column name not shown +- bug PDF export: title not present in PDF 4.2.9.0 (2014-09-20) - bug ajax.js responseHandler: cannot read property of null diff --git a/export.php b/export.php index 5a236146b0..edcc8a1c9e 100644 --- a/export.php +++ b/export.php @@ -67,7 +67,6 @@ if (!defined('TESTSUITE')) { 'mediawiki_headers', 'mediawiki_structure_or_data', 'mediawiki_caption', - 'pdf_report_title', 'pdf_structure_or_data', 'odt_structure_or_data', 'odt_relation', diff --git a/libraries/plugins/export/ExportPdf.class.php b/libraries/plugins/export/ExportPdf.class.php index 876f0700bb..5efc704681 100644 --- a/libraries/plugins/export/ExportPdf.class.php +++ b/libraries/plugins/export/ExportPdf.class.php @@ -63,7 +63,9 @@ class ExportPdf extends ExportPlugin */ protected function initSpecificVariables() { - $this->_setPdfReportTitle(""); + if (! empty($_POST['pdf_report_title'])) { + $this->_setPdfReportTitle($_POST['pdf_report_title']); + } $this->_setPdf(new PMA_ExportPdf('L', 'pt', 'A3')); }