diff --git a/CHANGELOG.md b/CHANGELOG.md index 468930d9..89eb8a93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +* Increase to 1 the maximum of atlas features in a `GetPrint` request automatically * Fix some columns in the "Filter by form" panel * Add a notice if the layer is stored in PostgreSQL when setting up the "Locate by layer" tool * Add a link to PgService documentation on qgis.org website diff --git a/lizmap/plugin.py b/lizmap/plugin.py index ab0d2e5a..3b7c0694 100755 --- a/lizmap/plugin.py +++ b/lizmap/plugin.py @@ -3073,6 +3073,11 @@ def project_config_file( self.dlg.check_results.add_error(Error(Path(self.project.fileName()).name, Checks.TrustProject)) self.dlg.enabled_trust_project(True) + # Not blocking, we change it in the background + if self.project.readNumEntry("WMSMaxAtlasFeatures", '')[0] <= 0: + LOGGER.info("The maximum atlas features was less than '1'. We set it to '1' to at least have a value.") + self.project.writeEntry("WMSMaxAtlasFeatures", "/", 1) + self.dlg.check_results.sort() if with_gui and self.dlg.check_results.has_rows():