[Mapbender-commits] r9309 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Nov 24 02:32:34 PST 2015
Author: armin11
Date: 2015-11-24 02:32:34 -0800 (Tue, 24 Nov 2015)
New Revision: 9309
Modified:
trunk/mapbender/http/plugins/mb_print.php
Log:
Bugfix for empty map_url field of printPdf module
Modified: trunk/mapbender/http/plugins/mb_print.php
===================================================================
--- trunk/mapbender/http/plugins/mb_print.php 2015-11-23 15:31:03 UTC (rev 9308)
+++ trunk/mapbender/http/plugins/mb_print.php 2015-11-24 10:32:34 UTC (rev 9309)
@@ -647,11 +647,11 @@
updateFormField(formData, "mypermanentImage", permanentImage);
}
-
- if (f.map_url.value!="") {
- //return true;
+ if (f.map_url.value!="" && typeof f.map_url.value != 'undefined') {
+ //all fields are ok wait for pdf
} else {
- showHideWorking("hide");
+ showHideWorking("hide");
+ alert('<?php echo _mb('No active maplayers in current print extent, please choose another extent/position for your template frame!'); ?>');
return false;
}
};
More information about the Mapbender_commits
mailing list