4/debian-10/plugins/redmine_issue_templates/app/models/issue_template.rb
#
# In case set is_default and updated, others are also updated.
#
In case set is_default and updated, others are also updated.
In case set is_default and updated others are also updated .
def check_default
    return unless is_default? && is_default_changed?
    self.class.search_by_project(project_id).search_by_tracker(tracker_id).update_all(is_default: false)
  end
def check_default return unless is_default? && is_default_changed? self . class . search_by_project ( project_id ) . search_by_tracker ( tracker_id ) . update_all ( is_default : false ) end
In case set is_default and updated, others are also updated.
In case set is_default and updated others are also updated .