You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2022/02/13 09:00:25 UTC

[struts] branch WW-5168-submit-unchecked updated: WW-5168 Reverts condition in if statement

This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch WW-5168-submit-unchecked
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/WW-5168-submit-unchecked by this push:
     new d454384  WW-5168 Reverts condition in if statement
d454384 is described below

commit d454384a4b5772e0c1b76e46922c5ed9c4548d3d
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Sun Feb 13 10:00:20 2022 +0100

    WW-5168 Reverts condition in if statement
---
 .../main/java/org/apache/struts2/views/java/simple/CheckboxHandler.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxHandler.java b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxHandler.java
index 6f0e965..6fe4a8b 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxHandler.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/CheckboxHandler.java
@@ -52,7 +52,7 @@ public class CheckboxHandler extends AbstractTagHandler implements TagGenerator
         start("input", attrs);
         end("input");
 
-        if (!submitUnchecked) {
+        if (submitUnchecked) {
             //hidden input
             attrs = new Attributes();