changeset 82:06495f77a74c

Fix a problem with dataforms.
author Sonny Piers <sonny.piers@gmail.com>
date Tue, 07 Feb 2012 18:46:04 +0100
parents 7500bc048dbc
children bfa3c003fc1d
files plugins/dataforms.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/dataforms.js
+++ b/plugins/dataforms.js
@@ -127,7 +127,7 @@
         }
 
         var itemsList = x.getElementsByTagNameNS(Lightstring.ns['dataforms'], 'item');
-        if (itemsList) {
+        if (itemsList.length) {
           var fields = parseFields(itemsList[0].getElementsByTagNameNS(Lightstring.ns['dataforms'], 'fields'));
           if (fields)
             form.items = fields;