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
This commit is contained in:
Pavel Yurke
2013-11-25 11:14:52 +00:00
parent 357d8b9671
commit 2e9fff978f

View File

@@ -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. */