Skip to content

Commit

Permalink
Fix shredder boolean argument inputs
Browse files Browse the repository at this point in the history
Previously they couldn't be actually checked, because of the empty input
values. This commit corrects both the value and checked status.
  • Loading branch information
sunnavy committed Jan 4, 2024
1 parent 8d598c5 commit 73e4a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/html/Admin/Tools/Shredder/Elements/PluginArguments
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $Plugin => ''
% if( $plugin_obj->ArgIsBoolean( $a ) ) {
<&| /Elements/LabeledValue, Label => "" &>
<div class="custom-control custom-checkbox">
<input type="checkbox" id="<% "$Plugin:$a" %>" name="<% "$Plugin:$a" %>" class="custom-control-input" value="<% $ARGS{ "$Plugin:$a" } || '' %>" />
<input type="checkbox" id="<% "$Plugin:$a" %>" name="<% "$Plugin:$a" %>" class="custom-control-input" value="1" <% $ARGS{ "$Plugin:$a" } ? 'checked="checked"' : '' |n %> />
<label class="custom-control-label" for="<% "$Plugin:$a" %>"><% loc($a) %></label>
<span class="hints d-block"><% $arguments_help{$a}->{help} |n%></span>
</div>
Expand Down

0 comments on commit 73e4a30

Please sign in to comment.