Bug report #8297
Clear a filter created with advanced filter causes a parsing error in the attribute table
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||17093|
When I clean a filter created with Advanced Filter in the attribute table, and do apply, it does not show all the records again, and shows a parsing error. Doing the same with Column Filter, it works as expected.
I've made a screencast to illustrate the situation: http://goo.gl/VPVe9
Nathan has confirmed the problem in this thread http://osgeo-org.1560.x6.nabble.com/Advanced-filter-in-the-attribute-table-td5066323.html and according to him:
It's trying to eval an empty expression which can't really work. The correct behavior would be to change the filter back to Show All Features if the expression is null and the user presses Apply.