From 8c91ccb7597198a1abc5a47bdf53934b8be4c2c2 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Mon, 18 Nov 2013 07:32:16 +0100
Subject: [PATCH] =?utf8?q?googlemap:=20print=20out=20hostname=20for=20reso?=
 =?utf8?q?urces=20record=20that=20don=E2=80=99t=20have=20hrn=20set?=
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

---
 plugins/googlemap/static/js/googlemap.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/plugins/googlemap/static/js/googlemap.js b/plugins/googlemap/static/js/googlemap.js
index 39e80cc0..8501c741 100644
--- a/plugins/googlemap/static/js/googlemap.js
+++ b/plugins/googlemap/static/js/googlemap.js
@@ -146,7 +146,11 @@ googlemap_debug_detailed=false;
 	// retrieve DOM checkbox and make sure it is checked/unchecked
         set_checkbox: function(record, checked) {
 	    var hrn=this.record_hrn (record);
-	    if (! hrn) { messages.warning ("googlemap.set_checkbox: record has no hrn"); return; }
+	    if (! hrn) { 
+		try {messages.warning ("googlemap.set_checkbox: record has no hrn -- hostname="+record.hostname); }
+		catch (err) {messages.warning ("googlemap.set_checkbox: record has no hrn"); }
+		return; 
+	    }
 	    var checkbox_s = this.by_hrn [ hrn ];
 	    if (! checkbox_s ) { messages.warning ("googlemap.set_checkbox: could not spot checkbox for hrn "+hrn); return; }
 	    checkbox_s.checkbox.prop('checked',checked);
-- 
2.47.0