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

index 04f596a..6d4047d 100644 (file)
@@ -273,7 +273,7 @@ monthField.setValue('2006-5-4');
         }
         if (v) {
             // 
-            v = Date.parseDate(date.format('Y-m' +'-01', 'Y-m-d'));
+            v = Date.parseDate(v.format('Y-m' +'-01', 'Y-m-d'));
         }