Skip to content

Commit

Permalink
Disabled form fields are no longer part of the __fp form parameter.
Browse files Browse the repository at this point in the history
Disabled form fields are not sent with the request but should not set anything to null either.
  • Loading branch information
casid authored and kelunik committed Jun 10, 2021
1 parent 60ad751 commit ac5a867
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,12 @@ protected void makeFocused() throws JspException {
* @throws StripesJspException if the parent form tag is not found
*/
protected void registerWithParentForm() throws StripesJspException {
getParentFormTag().registerField(this);

// Disabled form fields should not be part of the __fp form parameter.
// Disabled form fields are not sent with the request but should not set anything to null either.
if ( getDisabled() == null ) {
getParentFormTag().registerField(this);
}
}

}

0 comments on commit ac5a867

Please sign in to comment.