From 65b6034ae69498f71be6941792194752ccb02ffa Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Fri, 13 Nov 1998 23:10:52 +0000 Subject: [PATCH] bug 1357 involving a hidden control not getting submitted git-svn-id: svn://10.0.0.236/trunk@14633 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/forms/src/nsButtonControlFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/layout/html/forms/src/nsButtonControlFrame.cpp b/mozilla/layout/html/forms/src/nsButtonControlFrame.cpp index 92b6596583b..931b3591761 100644 --- a/mozilla/layout/html/forms/src/nsButtonControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsButtonControlFrame.cpp @@ -69,7 +69,9 @@ nsButtonControlFrame::GetDefaultLabel(nsString& aString) PRBool nsButtonControlFrame::IsSuccessful(nsIFormControlFrame* aSubmitter) { - if (this == (aSubmitter)) { + PRInt32 type; + GetType(&type); + if ((NS_FORM_INPUT_HIDDEN == type) || (this == aSubmitter)) { return nsFormControlFrame::IsSuccessful(aSubmitter); } else { return PR_FALSE;