silverstripe-terraformers / gridfield-rich-filter-header

SilverStripe GridField rich filter header component
BSD 3-Clause "New" or "Revised" License
13 stars 8 forks source link

Prevent error with reset button. Fix compatibility issue for ss4.8 #13

Closed t3hn0 closed 3 years ago

t3hn0 commented 3 years ago

At least for SS4.8 $stage->Columns needs to be instance of GridState_Data or reset won't work and will throw server error. Fix initialises variable as new empty GridState_Data.

mfendeksilverstripe commented 3 years ago

Thanks for contribution @t3hn0 , I've created a follow up PR where this issue is resolved.

The new fix is available in the 2.1.4 release.