From d7d719a73d2503eb555ac6b3345f530e659eefcf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Oct 2010 13:56:40 +0000 Subject: [PATCH] do NOT return buttons, unless they are pressed --- phpgwapi/js/egw_json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/js/egw_json.js b/phpgwapi/js/egw_json.js index fd4ec8d972..57f06526ec 100644 --- a/phpgwapi/js/egw_json.js +++ b/phpgwapi/js/egw_json.js @@ -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; }