Skip to content

Commit

Permalink
Merge pull request #942 from CHSS-IT/canceled_date_fix_2
Browse files Browse the repository at this point in the history
Canceled date fix 2
  • Loading branch information
CraigJZ authored Nov 20, 2024
2 parents 83e1987 + d3ceb1e commit fd6c6cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/helpers/sections_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def level_label(level)
end

def truthiness_indicator(value)
tag.i class: 'fa-solid fa-circle-check fa-large fa-xl' if value
tag.i class: 'fa-solid fa-circle-check fa-lg fa-xl' if value
end

def day_and_time(section)
Expand Down
2 changes: 1 addition & 1 deletion app/models/section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def self.import(filepath)
end

if section.status != 'C'
if section.status_changed? || section.canceled_at.present?
if section.status_changed? && section.canceled_at.present?
section.canceled_at = nil
@uncanceled_sections += 1
@import_report.report_item('Executing Import', 'Uncanceled Sections', "#{section.section_and_number} in #{section.term}")
Expand Down

0 comments on commit fd6c6cb

Please sign in to comment.