Roo/form/MonthField.js
authorAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 11:19:06 +0000 (19:19 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 22 Oct 2012 11:19:06 +0000 (19:19 +0800)
Roo/form/MonthField.js

index 421c088..6f489b6 100644 (file)
@@ -268,7 +268,10 @@ monthField.setValue('2006-5-4');
         }
         var v = Date.parseDate(value, this.format);
         if (!v && this.useIso) {
-            v = Date.parseDate(value, 'Y-m-01');
+            v = Date.parseDate(value, 'Y-m-d');
+        }
+        if (v) {
+            v = Date.parseDate(date.format('Y-m-01'));
         }