File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 62
62
% if ( $checktype eq 'radio' ) {
63
63
% if ( $show_empty_option ) {
64
64
<div class="none custom-control custom-radio">
65
- <input class="none custom-control-input" id="<% $name %>-none" type="<% $checktype %>" name="<% $name %>" id="<% $name %>-none" value="" <% keys %default ? '' : ' checked="checked"' |n%> />
65
+ <input class="none custom-control-input" id="<% $name %>-none" type="<% $checktype %>" name="<% $name %>" value="" <% keys %default ? '' : ' checked="checked"' |n%> />
66
66
<label class="custom-control-label" for="<% $name %>-none"><&|/l&>(no value)</&></label>
67
67
</div>
68
68
% }
Original file line number Diff line number Diff line change @@ -1421,7 +1421,11 @@ jQuery(function () {
1421
1421
}
1422
1422
1423
1423
/* skip duplicates, such as ticket id */
1424
- if ( currentForm . find ( '[name="' + field . attr ( 'name' ) + '"]' ) . length > 0 ) {
1424
+ /* Specifically exclude radio and checkbox because the name of all inputs are the same
1425
+ * so checked values don't get properly submitted. This results in these CFs getting
1426
+ * unset when a field in another portlet is updated because the current value isn't
1427
+ * submitted. */
1428
+ if ( field . attr ( 'type' ) != 'radio' && field . attr ( 'type' ) != 'checkbox' && currentForm . find ( '[name="' + field . attr ( 'name' ) + '"]' ) . length > 0 ) {
1425
1429
return ;
1426
1430
}
1427
1431
You can’t perform that action at this time.
0 commit comments