Skip to content

Commit

Permalink
fix(duplication): duplicate deprecated language question
Browse files Browse the repository at this point in the history
- bypassing the validation of language being deprecated during duplication
  • Loading branch information
bivanalhar authored and cysjonathan committed Oct 17, 2024
1 parent 8e2a6b9 commit 59fd96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/course/assessment/question/programming.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Course::Assessment::Question::Programming < ApplicationRecord # rubocop:di
validates :import_job_id, uniqueness: { allow_nil: true, if: :import_job_id_changed? }

validates :language, presence: true
validate :validate_language_enabled
validate :validate_language_enabled, unless: :duplicating?

validate -> { validate_time_limit }
validate :validate_codaveri_question
Expand Down

0 comments on commit 59fd96e

Please sign in to comment.