From 2499dacf71e356a725ce733dbcd62d1f2740dd04 Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Wed, 19 Dec 2018 16:32:44 +0530 Subject: [PATCH] Fix #162: Force disable page summary for ExportMenu --- CHANGE.md | 3 ++- src/ExportMenu.php | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGE.md b/CHANGE.md index 0283c73..a3e4be3 100755 --- a/CHANGE.md +++ b/CHANGE.md @@ -8,12 +8,13 @@ Change Log: `yii2-export` - (enh #288): Correct export column selection when `asDropdown` is `false`. - (enh #276): Ability to configure explicit cell formats (header, footer, content, before, after). Explicit cell formats must be one of the `PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_` constants. - This can be set via `cellFormat` settings at one or more of the following levels. + This can be set via `cellFormat` settings at one or more of the following levels. - `Column::headerOptions['cellFormat']` within `columns` array items. - `Column::contentOptions['cellFormat']` within `columns` array items. - `Column::footerOptions['cellFormat']` within `columns` array items. - The `cellFormat` setting for each array item within `ExportMenu::contentBefore` - The `cellFormat` setting for each array item within `ExportMenu::contentAfter` +- (enh #162): Disable page summary validation and rendering for `yii2-export`. ## version 1.3.8 diff --git a/src/ExportMenu.php b/src/ExportMenu.php index 1093766..ef1b604 100644 --- a/src/ExportMenu.php +++ b/src/ExportMenu.php @@ -836,6 +836,7 @@ public function run() */ protected function initSettings() { + $this->showPageSummary = false; // force disable page-summary for `ExportMenu` (issue #162) $this->_msgCat = 'kvexport'; if (empty($this->options['id'])) { $this->options['id'] = $this->getId();