kartik-v / yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)
http://demos.krajee.com/export
Other
165 stars 126 forks source link

Exception error when showColumnSelector is false #284

Closed cluwong closed 5 years ago

cluwong commented 5 years ago

Prerequisites

Steps to reproduce the issue

  1. Load the page with ExportMenu widget

Expected behavior and actual behavior

When I follow those steps, I see...

PHP Warning – yii\base\ErrorException in_array() expects parameter 2 to be array, null given in /var/www/xxxxx/vendor/kartik-v/yii2-export/src/ExportMenu.php at line 1227

If showConfirmSelector => true, page is loaded.

I was expecting...

Environment

Browsers

Operating System

Libraries

Isolating the problem

1Luc1 commented 5 years ago

I have the exact same problem. The following worked for me as workaround:

If showConfirmSelector => true, page is loaded.

cluwong commented 5 years ago

Downloaded dev-master version and it works! Thanks for the fix. When will this be released as stable version?