# HG changeset patch # User Nattee Niparnan # Date 2017-03-10 11:59:13 # Node ID 43781dd1b0bdc77b0f53c5730f8a2ddd49e9c77a # Parent a2d233431d60fa3d7f5dd135278cf20e4fdc380c fix show submission where problem is nil diff --git a/app/views/submissions/show.html.haml b/app/views/submissions/show.html.haml --- a/app/views/submissions/show.html.haml +++ b/app/views/submissions/show.html.haml @@ -66,7 +66,7 @@ %tr %td.text-right %strong Points - %td #{@submission.points}/#{@submission.problem.full_score} + %td #{@submission.points}/#{@submission.try(:problem).try(:full_score)} %tr %td.text-right %strong Comment