[Mapbender-commits] r9733 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Apr 11 06:56:39 PDT 2017


Author: verenadiewald
Date: 2017-04-11 06:56:39 -0700 (Tue, 11 Apr 2017)
New Revision: 9733

Modified:
   trunk/mapbender/http/php/mb_getWmsData.php
Log:
correct validation of checkbox option  harvestDatasetMetadata

Modified: trunk/mapbender/http/php/mb_getWmsData.php
===================================================================
--- trunk/mapbender/http/php/mb_getWmsData.php	2017-04-04 13:44:41 UTC (rev 9732)
+++ trunk/mapbender/http/php/mb_getWmsData.php	2017-04-11 13:56:39 UTC (rev 9733)
@@ -104,7 +104,7 @@
 	#$changedLayerObj = json_encode($changedLayerArray);
 	
     	$mywms = new wms();
-	if(empty($_POST['harvest_dataset_metadata'])) {
+    if(empty($_POST['harvestDatasetMetadata']) || $_POST['harvestDatasetMetadata'] == 'false') {
 		$mywms->harvestCoupledDatasetMetadata = false;
 	}
 	if ($useAuthentication) {



More information about the Mapbender_commits mailing list