Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v diff -u -r1.284.2.74 -r1.284.2.75 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 3 Feb 2020 11:31:53 -0000 1.284.2.74 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 3 Feb 2020 22:25:37 -0000 1.284.2.75 @@ -787,13 +787,18 @@ append feedback " ${:correction}" if {[info exists :correction_data]} { #append feedback " ${:correction_data}" - if {[info exists :grading] - && [dict exists ${:correction_data} scores ${:grading}] - } { - set grading_score [dict get ${:correction_data} scores ${:grading}] - #:log "=== grading ${:grading} => $grading_score" - append feedback " selected_grading_score $grading_score" - ${:object} set_property -new 1 grading_score $grading_score + if {[info exists :grading]} { + if {[dict exists ${:correction_data} scores ${:grading}] } { + set grading_score [dict get ${:correction_data} scores ${:grading}] + #:log "=== grading ${:grading} => $grading_score" + append feedback " selected_grading_score $grading_score" + ${:object} set_property -new 1 grading_score $grading_score + set :grading_score $grading_score + #ns_log notice "SET GRADING score $grading_score for [self]" + } + } else { + set :grading_score "" + #ns_log notice "=== UNKOWN grading ${:grading} => ${:grading_score}" } } } @@ -1406,10 +1411,11 @@ # set ff [dict create {*}$v] set html "