Fix typo in Form::Import (#40451)
This commit is contained in:
1 parent
59e2ef27f8
commit
f89378492d
1 file changed
+1
-1
@@ -203,7 +203,7 @@ class Form::Import
|
||||
|
||||
def validate_json_data
|
||||
return errors.add(:data, I18n.t('imports.errors.incompatible_type')) unless allowed_type_for_json?
|
||||
return errors.add(:date, I18n.t('imports.errors.no_data')) if json_data.empty?
|
||||
return errors.add(:data, I18n.t('imports.errors.no_data')) if json_data.empty?
|
||||
|
||||
errors.add(:data, I18n.t('imports.errors.over_rows_processing_limit', count: ROWS_PROCESSING_LIMIT)) if json_data.count > ROWS_PROCESSING_LIMIT
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user