From 2dc5132eb6e2d57bd1ebe6885d2923781f04abea Mon Sep 17 00:00:00 2001 From: Alan Davis Date: Tue, 11 Feb 2014 23:11:09 +0000 Subject: [PATCH] Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud) 58321: Merged V4.2-BUG-FIX (4.2.1) to HEAD-BUG-FIX (Cloud/4.3) 58242: 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/HEAD/root@61957 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. */