Roo/form/MonthField.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 10:04:03 +0000 (18:04 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 10:04:03 +0000 (18:04 +0800)
Roo/form/MonthField.js

index 214c3f2..9d5589b 100644 (file)
@@ -263,7 +263,7 @@ monthField.setValue('2006-5-4');
             return value;
         }
         var v = Date.parseDate(value, this.format);
-        if (this.useIso) {
+        if (!v && this.useIso) {
             v = Date.parseDate(value, 'Y-m-d');
         }