From 2e9fff978f9a79eccdaa9fd6408d52b3ac7421b9 Mon Sep 17 00:00:00 2001 From: Pavel Yurke Date: Mon, 25 Nov 2013 11:14:52 +0000 Subject: [PATCH] Merged DEV to V4.2-BUG-FIX (4.2.1) 57514: MNT-7235: WCM - Fields with a maxlength validation rule report an error if any other fields are in error - Return the value contained by the widget, or null if none is set git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/V4.2-BUG-FIX/root@58242 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- source/web/scripts/ajax/xforms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/web/scripts/ajax/xforms.js b/source/web/scripts/ajax/xforms.js index 766d8713bc..bc3082df3a 100644 --- a/source/web/scripts/ajax/xforms.js +++ b/source/web/scripts/ajax/xforms.js @@ -310,7 +310,7 @@ alfresco.xforms.Widget = new Class({ /** Returns the value contained by the widget, or null if none is set */ getValue: function() { - return null; + return this.widget.getValue().length != 0 ? this.widget.getValue() : null; }, /** Sets the widget's initial value. */