do NOT return buttons, unless they are pressed

This commit is contained in:
Ralf Becker 2010-10-12 13:56:40 +00:00
parent f3ea81f5c6
commit d7d719a73d

View File

@ -622,7 +622,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;
}