From d088640ae98a7fc608ea94d4cf290c845aae5866 Mon Sep 17 00:00:00 2001 From: "pollmann%netscape.com" Date: Wed, 27 Jan 1999 02:33:16 +0000 Subject: [PATCH] Bug 1958: Submit value for checkboxes or "on" for checkboxes with no value. --- layout/html/forms/src/nsCheckboxControlFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/html/forms/src/nsCheckboxControlFrame.cpp b/layout/html/forms/src/nsCheckboxControlFrame.cpp index 351a58460c4f..f014b83f6b02 100644 --- a/layout/html/forms/src/nsCheckboxControlFrame.cpp +++ b/layout/html/forms/src/nsCheckboxControlFrame.cpp @@ -246,7 +246,7 @@ nsCheckboxControlFrame::GetNamesValues(PRInt32 aMaxNumValues, PRInt32& aNumValue if (PR_TRUE != state) { result = PR_FALSE; } else { - if (NS_CONTENT_ATTR_HAS_VALUE == valueResult) { + if (NS_CONTENT_ATTR_HAS_VALUE != valueResult) { aValues[0] = "on"; } else { aValues[0] = value;