fix saving an edited default grading scheme from assignment page

test plan:
* edit an assignment, selecting "Display Grade as" to
 "Letter Grade"
* click "View Grading Scheme" to see the default grading scheme
* click on the edit icon to edit it
* save the grading scheme
* it should work

closes #CNVS-25096

Change-Id: I49b08bc50e7b2fc57fd70c2d9afc2031419e4294
Reviewed-on: https://gerrit.instructure.com/68437
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
This commit is contained in:
James Williams 2015-12-08 08:08:03 -07:00
parent 28795ba78f
commit ab07a6b245
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<% grading_standard_list ||= false %>
<% read_only ||= false %>
<% data = grading_standard.data rescue GradingStandard.default_grading_standard %>
<div class="grading_standard" id="grading_standard_<%= grading_standard ? grading_standard.id : 'blank' %>">
<div class="grading_standard" id="grading_standard_<%= grading_standard && grading_standard.id ? grading_standard.id : 'blank' %>">
<div class="display_grading_standard">
<div class="standard_title text-center">
<% if !read_only %>