File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
lizmap/modules/view/controllers Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -164,8 +164,9 @@ function displayWarningsAdministrator(withDisplay) {
164164 ) . attr ( 'id' , 'lizmap-warning-message' ) ;
165165 }
166166
167- } else if ( document . body . dataset . lizmapPluginHasWarnings ) {
168- console . warn ( 'The project has some warnings in the Lizmap plugin.' ) ;
167+ } else if ( document . body . dataset . lizmapPluginWarningsCount ) {
168+ console . warn (
169+ `The project has ${ document . body . dataset . lizmapPluginWarningsCount } warning(s) in the Lizmap plugin.` ) ;
169170
170171 if ( document . body . dataset . lizmapPluginHasWarningsUrl && withDisplay ) {
171172 let messageHasWarnings = lizDict [ 'project.has.warnings' ] ;
Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ function f($x)
545545 $ rep ->setBodyAttributes (array ('data-lizmap-plugin-update-warning-url ' => jUrl::get ('admin~qgis_projects:index ' )));
546546 }
547547 } elseif ($ lproj ->projectCountCfgWarnings () >= 1 ) {
548- $ rep ->setBodyAttributes (array ('data-lizmap-plugin-has- warnings ' => true ));
548+ $ rep ->setBodyAttributes (array ('data-lizmap-plugin-warnings-count ' => $ lproj -> projectCountCfgWarnings () ));
549549 if ($ isAdmin ) {
550550 $ rep ->setBodyAttributes (array ('data-lizmap-plugin-has-warnings-url ' => jUrl::get ('admin~qgis_projects:index ' )));
551551 }
You can’t perform that action at this time.
0 commit comments