From 17717e94ec415fe0e1c65f2db1a63b09a36df949 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 13 Feb 2016 13:33:20 +1100 Subject: [PATCH] Do not send "undefined" data in ajax Thanx @BOOMER74 --- modules/system/assets/js/framework.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/assets/js/framework.js b/modules/system/assets/js/framework.js index 84549154e..1b6e9d0c7 100644 --- a/modules/system/assets/js/framework.js +++ b/modules/system/assets/js/framework.js @@ -74,7 +74,7 @@ if (window.jQuery === undefined) if ($el.is(':input') && !$form.length) { var inputName = $el.attr('name') - if (options.data[inputName] === undefined) + if (inputName !== undefined && options.data[inputName] === undefined) options.data[inputName] = $el.val() }