B #4269: Fix retrieve input function (#4275)

(cherry picked from commit 9b271c3b14)
This commit is contained in:
Sergio Betanzos authored and Tino Vazquez committed 2020-02-27 11:04:37 +01:00
1 parent 8aea45d3ed
commit d8b044dda7
1 file changed
+6 -4
@@ -52,10 +52,12 @@ define(function(require) {
return templateJSON;
}
function _retrieveInput(value) {
return (value instanceof $)
? value.val()
: TemplateUtils.escapeDoubleQuotes( value );
function _retrieveInput(input) {
return TemplateUtils.escapeDoubleQuotes(
(input instanceof $)
? input.val()
: input
);
}
// TODO: wizard_field_64 for fill method