From 6d074abc3fb2ac9228f3c76d2f47734e9721a48e Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Fri, 25 Oct 2024 14:58:12 +0200 Subject: [PATCH] no validation if tabular export template Co-authored-by: mfo --- app/validators/export_template_validator.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/validators/export_template_validator.rb b/app/validators/export_template_validator.rb index 51dc51141..51099b714 100644 --- a/app/validators/export_template_validator.rb +++ b/app/validators/export_template_validator.rb @@ -2,6 +2,8 @@ class ExportTemplateValidator < ActiveModel::Validator def validate(export_template) + return if !export_template.template_zip? + validate_all_templates(export_template) return if export_template.errors.any? # no need to continue if the templates are invalid