default.rb 301 B

1234567891011
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Validations::TicketArticleValidator
  3. class Default < Backend
  4. def validate_body
  5. return if @record.body.present?
  6. @record.errors.add :base, __("Need at least an 'article body' field.")
  7. end
  8. end
  9. end