From e1b3006db5798bf70b4c2427b8f3de1363e718e5 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Mon, 24 Feb 2014 19:49:41 +0100 Subject: [PATCH] Rico Bugfix: Prevent translation error --- lib/rico/ricoLiveGridForms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rico/ricoLiveGridForms.js b/lib/rico/ricoLiveGridForms.js index 2b12135..ace80ef 100644 --- a/lib/rico/ricoLiveGridForms.js +++ b/lib/rico/ricoLiveGridForms.js @@ -605,7 +605,7 @@ Rico.TableEdit = Class.create( processResponse: function() { var responseText,success=true; var respNodes=Element.select(this.responseDiv,'.ricoFormResponse'); - if (respNodes) { + if (respNodes && respNodes.length) { // generate a translated response var phraseId=$w(respNodes[0].className)[1]; responseText=RicoTranslate.getPhraseById(phraseId,this.options.RecordName); -- 2.20.1