From 6b1c7d7a845b81378845aa5093dc00968b77fdff Mon Sep 17 00:00:00 2001 From: Renaud Le Gac <renaud.legac@free.fr> Date: Sat, 1 Oct 2011 21:04:24 +0200 Subject: [PATCH] Bug fixed in the method updateRecord. --- static/plugin_dbui/src/appform.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/plugin_dbui/src/appform.js b/static/plugin_dbui/src/appform.js index a6501a04..18243a16 100644 --- a/static/plugin_dbui/src/appform.js +++ b/static/plugin_dbui/src/appform.js @@ -333,7 +333,9 @@ App.form.FormPanel = Ext.extend(Ext.form.FormPanel, { // property format. case 'datefield': - value = value.format(field.format); + if (Ext.isDate(value)) { + value = value.format(field.format); + } break; // For foreign key, the record contains the valueField -- GitLab