remove useless conversion

This commit is contained in:
simon lehericey 2024-10-28 10:07:48 +01:00
parent 1268f323cb
commit f50e63ea40
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -33,7 +33,7 @@ class FilteredColumn
private private
def check_filter_max_length def check_filter_max_length
if @filter.present? && @filter.length.to_i > FILTERS_VALUE_MAX_LENGTH if @filter.present? && @filter.length > FILTERS_VALUE_MAX_LENGTH
errors.add( errors.add(
:base, :base,
"Le filtre « #{label} » est trop long (maximum: #{FILTERS_VALUE_MAX_LENGTH} caractères)" "Le filtre « #{label} » est trop long (maximum: #{FILTERS_VALUE_MAX_LENGTH} caractères)"