Skip to content

Commit

Permalink
Fix code scanning alert no. 1: DOM text reinterpreted as HTML (#397)
Browse files Browse the repository at this point in the history
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
clotairer and github-advanced-security[bot] authored Jan 14, 2025
1 parent 6edefcd commit fc8afa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/js/form_config_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $(document).ready(function() {
product_rule_line.attr('data-type', $( "#product_rule_type option:selected").val());
product_rule_line.find(".product_input input:eq(0)")
.attr('name', 'product_rule_select[' + $("#product_rule_type option:selected").val() + '][]');
product_rule_line.find('.type').html($( "#product_rule_type option:selected" ).text());
product_rule_line.find('.type').text($( "#product_rule_type option:selected" ).text());
$('#product_rule_table tbody').append(product_rule_line);
});

Expand Down

0 comments on commit fc8afa2

Please sign in to comment.