Skip to content

Commit

Permalink
Merge pull request #88 from calblueprint/adminbug
Browse files Browse the repository at this point in the history
Fixed admin bug
  • Loading branch information
wilsonw926 authored Apr 16, 2020
2 parents 12931f0 + 27aae0b commit 85c6bfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/models/case_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class CaseNote < ApplicationRecord
end

def title_with_association
"#{title} for #{participant.full_name}"
if self.participant
"#{title} for #{self.participant.full_name}"
end
end
end
4 changes: 3 additions & 1 deletion app/models/paperwork.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class Paperwork < ApplicationRecord
end

def title_with_association
"#{title} for #{participant.full_name}"
if self.participant
"#{title} for #{self.participant.full_name}"
end
end
end

0 comments on commit 85c6bfb

Please sign in to comment.