do NOT return buttons, unless they are pressed

This commit is contained in:
Ralf Becker 2010-10-12 13:57:46 +00:00
parent 07842c9c42
commit f19335a721

View File

@ -501,7 +501,7 @@ function _egw_json_getFormValue(serialized, child)
{
//Return if the child doesn't have a name, is disabled, or is a radio-/checkbox and not checked
if ((typeof child.name == "undefined") || (child.disabled && child.disabled == true) ||
(child.type && (child.type == 'radio' || child.type == 'checkbox') && (!child.checked)))
(child.type && (child.type == 'radio' || child.type == 'checkbox' || child.type == 'button' || child.type == 'submit') && (!child.checked)))
{
return;
}