Skip to content

Commit

Permalink
Updates to release v1.3.9 fixes #288
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Dec 18, 2018
1 parent 99f8892 commit ad58747
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Change Log: `yii2-export`
=========================

## version 1.3.9

**Date:** _under development_

- (enh #288): Correct export column selection when `asDropdown` is `false`.

## version 1.3.8

**Date:** 29-Nov-2018
Expand Down
2 changes: 1 addition & 1 deletion src/ExportColumnAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2015 - 2018
* @package yii2-export
* @version 1.3.8
* @version 1.3.9
*/

namespace kartik\export;
Expand Down
5 changes: 3 additions & 2 deletions src/ExportMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @package yii2-export
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.8
* @version 1.3.9
*/

namespace kartik\export;
Expand Down Expand Up @@ -166,6 +166,7 @@ class ExportMenu extends GridView

/**
* @var boolean whether to show a column selector to select columns for export. Defaults to `true`.
* This is applicable only if [[asDropdown]] is set to `true`. Else this property is ignored.
*/
public $showColumnSelector = true;

Expand Down Expand Up @@ -845,7 +846,7 @@ protected function initSettings()
if (!isset($this->afterSaveView)) {
$this->afterSaveView = "{$path}/_view";
}
$this->_columnSelectorEnabled = $this->showColumnSelector;
$this->_columnSelectorEnabled = $this->showColumnSelector && $this->asDropdown;
$request = Yii::$app->request;
$this->_triggerDownload = $request->post($this->exportRequestParam, $this->triggerDownload);
$this->_exportType = $request->post($this->exportTypeParam, $this->exportType);
Expand Down
2 changes: 1 addition & 1 deletion src/ExportMenuAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @package yii2-export
* @version 1.3.8
* @version 1.3.9
*/

namespace kartik\export;
Expand Down
2 changes: 1 addition & 1 deletion src/ExportWriterPdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @package yii2-export
* @version 1.3.8
* @version 1.3.9
*/

namespace kartik\export;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/kv-export-columns.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-export
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.8
* @version 1.3.9
*
* Export Columns Selector Style Sheet
*
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/kv-export-columns.min.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-export
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.8
* @version 1.3.9
*
* Export Columns Selector Style Sheet
*
Expand Down
2 changes: 1 addition & 1 deletion src/assets/js/kv-export-columns.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-export
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.8
* @version 1.3.9
*
* Export Columns Selector Validation Module.
*
Expand Down
2 changes: 1 addition & 1 deletion src/assets/js/kv-export-columns.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-export
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.8
* @version 1.3.9
*
* Export Columns Selector Validation Module.
*
Expand Down
2 changes: 1 addition & 1 deletion src/assets/js/kv-export-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @package yii2-export
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.8
* @version 1.3.9
*
* Export Data Validation Module.
*
Expand Down
2 changes: 1 addition & 1 deletion src/assets/js/kv-export-data.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/views/_columns.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package yii2-export
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.8
* @version 1.3.9
*
* Column Selector View
*
Expand Down
2 changes: 1 addition & 1 deletion src/views/_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @package yii2-export
* @author Kartik Visweswaran <[email protected]>
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2015 - 2018
* @version 1.3.8
* @version 1.3.9
*
* Export Submission View
*
Expand Down

0 comments on commit ad58747

Please sign in to comment.