Commit 6eff9358 6eff93586c55014ea8d390b37cd1ab9b82041c92 by Nicolas Perriault

minor adjusting for #376

1 parent 61b83b86
...@@ -459,6 +459,7 @@ ...@@ -459,6 +459,7 @@
459 * @return Mixed 459 * @return Mixed
460 */ 460 */
461 this.getFieldValue = function getFieldValue(inputName, options) { 461 this.getFieldValue = function getFieldValue(inputName, options) {
462 options = options || {};
462 function getSingleValue(input) { 463 function getSingleValue(input) {
463 var type; 464 var type;
464 try { 465 try {
...@@ -496,7 +497,7 @@ ...@@ -496,7 +497,7 @@
496 } 497 }
497 var formSelector = ''; 498 var formSelector = '';
498 if (options && options.formSelector) { 499 if (options && options.formSelector) {
499 formSelector = options.formSelector + ' '; 500 formSelector = options.formSelector + ' ';
500 } 501 }
501 var inputs = this.findAll(formSelector + '[name="' + inputName + '"]'); 502 var inputs = this.findAll(formSelector + '[name="' + inputName + '"]');
502 switch (inputs.length) { 503 switch (inputs.length) {
......