Bug report #19406

Layer filters not being saved to .qgs file

Added by Nate Wessel over 6 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Unknown
Affected QGIS version:3.2 Regression?:No
Operating System:Ubuntu Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27234

Description

I have a QGIS project (.qgs file) that was created by an earlier version, but is now being worked with by version 3.2. As I edit the project, save it and reopen it everything seems to work normally except that the filters on a couple of my layers revert back to the state they were in when I opened the project. Things like active layers, symbols, and map extent seem to get saved and are right where I left them when I open the project anew. It's just that the layer filters don't seem to be updated.

This is a PostGIS layer with a simple filter expression like "user_id = 'B'". I am able to change the filter with no problems and it works as expected, it just don't get saved.

Also available in: Atom PDF