Commit 2eff84b9 2eff84b9756a7c097e5a89fa1ac12fd4f3000e49 by Ben Lowery

fix up one use of qsa, verify the length of the returned array when checking for empty.

1 parent 56c4e836
......@@ -214,7 +214,7 @@
}
var field = this.findAll('[name="' + name + '"]', form);
var value = vals[name];
if (!field) {
if (!field || field.length === 0) {
out.errors.push('no field named "' + name + '" in form');
continue;
}
......