[Mapbender-commits] r9637 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Jan 5 03:48:10 PST 2017


Author: armin11
Date: 2017-01-05 03:48:10 -0800 (Thu, 05 Jan 2017)
New Revision: 9637

Modified:
   trunk/mapbender/http/classes/class_metadata_new.php
Log:
Critical bugfix for metadata seach api !!!!

Modified: trunk/mapbender/http/classes/class_metadata_new.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata_new.php	2017-01-03 21:08:08 UTC (rev 9636)
+++ trunk/mapbender/http/classes/class_metadata_new.php	2017-01-05 11:48:10 UTC (rev 9637)
@@ -708,13 +708,13 @@
 				foreach ($this->datasetJSON->dataset->srv[$i]->coupledResources->layer as $layer) {
 					//$e = new mb_exception("layer: ".$layer->id);
 					//$e = new mb_exception("srvcount: ".$layerSearchArray[$layer->id]);
-					$this->datasetJSON->dataset->srv[$i]->coupledResources->layer[$layerCount]->srv = json_decode($coupledLayers->internalResult)->wms->srv[$layerSearchArray[$layer->id]];
+					$this->datasetJSON->dataset->srv[$i]->coupledResources->layer[$layerCount]->srv = json_decode($coupledLayers->internalResult, true)->wms->srv[$layerSearchArray[$layer->id]];
 					$layerCount++;	
 				}
 				$featuretypeCount = 0;
 				foreach ($this->datasetJSON->dataset->srv[$i]->coupledResources->featuretype as $ft) {
 					//$e = new mb_exception($ft->id ." in service:  ". $featuretypeSearchArray[$ft->id]);
-					$this->datasetJSON->dataset->srv[$i]->coupledResources->featuretype[$featuretypeCount]->srv = json_decode($coupledFeaturetypes->internalResult)->wfs->srv[$featuretypeSearchArray[$ft->id]];
+					$this->datasetJSON->dataset->srv[$i]->coupledResources->featuretype[$featuretypeCount]->srv = json_decode($coupledFeaturetypes->internalResulti, true)->wfs->srv[$featuretypeSearchArray[$ft->id]];
 					//delete all featuretypes that have not same id as ft->id
 					$cntFtype = 0;
 					foreach($this->datasetJSON->dataset->srv[$i]->coupledResources->featuretype[$featuretypeCount]->srv->ftype as $ftype) {



More information about the Mapbender_commits mailing list