Skip to content

Commit

Permalink
Fix #162: Force disable page summary for ExportMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Dec 19, 2018
1 parent 3b1cc51 commit 2499dac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/ExportMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2499dac

Please sign in to comment.