[Mapbender-commits] r9664 - in trunk/mapbender/http: classes javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sun Jan 22 08:25:28 PST 2017
Author: armin11
Date: 2017-01-22 08:25:28 -0800 (Sun, 22 Jan 2017)
New Revision: 9664
Modified:
trunk/mapbender/http/classes/class_ckanApi.php
trunk/mapbender/http/javascripts/mod_syncCkan_client.php
Log:
Bugfix
Modified: trunk/mapbender/http/classes/class_ckanApi.php
===================================================================
--- trunk/mapbender/http/classes/class_ckanApi.php 2017-01-22 16:24:46 UTC (rev 9663)
+++ trunk/mapbender/http/classes/class_ckanApi.php 2017-01-22 16:25:28 UTC (rev 9664)
@@ -1073,7 +1073,7 @@
// Check HTTP response code
if ($info['http_code'] !== 200)
{
- $e = new mb_exception("CKAN API request returned ".$info['http_code'] . ': ' . $this->http_status_codes[$info['http_code']]);
+ $e = new mb_exception("CKAN API request returned ".$info['http_code'] . ': ' . $this->http_status_codes[$info['http_code']]." while requesting ".$data);
} else {
$e = new mb_notice("CKAN API request returned 200 - OK");
}
Modified: trunk/mapbender/http/javascripts/mod_syncCkan_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_syncCkan_client.php 2017-01-22 16:24:46 UTC (rev 9663)
+++ trunk/mapbender/http/javascripts/mod_syncCkan_client.php 2017-01-22 16:25:28 UTC (rev 9664)
@@ -86,6 +86,8 @@
//read length of delete, update, create into variables
if ("undefined" !== typeof(orga.delete)) {var p_delete = (orga.delete).length;} else {var p_delete = 0;}
if ("undefined" !== typeof(orga.update)) {var p_update = (orga.update).length;} else {var p_update = 0;}
+ //alert(JSON.stringify(orga.update));
+ //alert(typeof(orga.update));
if ("undefined" !== typeof(orga.create)) {var p_create = (orga.create).length;} else {var p_create = 0;}
$('#sync_status_table tr:last').after('<tr id=\'r_id_'+orga.id+'\'>'+'<td id=\'mborgatitle_'+orga.id+'\'>'+'<a target=\'_blank\' href=\'../php/mod_showOrganizationInfo.php?id='+orga.id+'\'>'+orga.title+' ('+orga.count_geoportal_packages+')'+'</a>'+'</td>'+'<td id=\'ckanorgauuid_'+orga.id+'\'><a target=\'_blank\' href=\'<?php echo $ckanShowOrgaUrl;?>'+orga.ckan_orga_ident+'\'>'+orga.ckan_orga_ident+' ('+orga.count_ckan_packages+')'+'</a></td>'+'<td id=\'to_delete_'+orga.id+'\'>'+p_delete+'</td>'+'<td id=\'to_update_'+orga.id+'\'>'+p_update+'</td>'+'<td id=\'to_create_'+orga.id+'\'>'+p_create+'</td>'+'</tr>');
//add button for start syncing if something may be done ;-)
More information about the Mapbender_commits
mailing list