From f1a92c6c7d39a3605415f8d5e4b10c0c6ddebb8b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 28 Oct 2015 17:52:01 +0100 Subject: [PATCH] Fixed handling of multiselect types --- wcfsetup/install/files/js/WCF.User.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index f99c3a9cca..aa1d4ef296 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -1187,7 +1187,7 @@ WCF.User.Profile.Editor = Class.extend({ if ($value === null) $value = $element.val(); // check for checkboxes - if (/\[\]$/.test($name)) { + if ($element.attr('type') === 'checkbox' && /\[\]$/.test($name)) { if (!Array.isArray($values[$fieldName])) { $values[$fieldName] = []; } -- 2.20.1