Index: openacs-4/packages/assessment/lib/session-items.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/session-items.adp,v diff -u -r1.21 -r1.21.2.1 --- openacs-4/packages/assessment/lib/session-items.adp 14 Jul 2015 22:36:43 -0000 1.21 +++ openacs-4/packages/assessment/lib/session-items.adp 6 Nov 2016 12:52:54 -0000 1.21.2.1 @@ -67,7 +67,7 @@ @items.html;noquote@ - +
Index: openacs-4/packages/assessment/lib/session-items.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/assessment/lib/session-items.tcl,v diff -u -r1.22.2.1 -r1.22.2.2 --- openacs-4/packages/assessment/lib/session-items.tcl 10 Sep 2015 08:27:55 -0000 1.22.2.1 +++ openacs-4/packages/assessment/lib/session-items.tcl 6 Nov 2016 12:52:55 -0000 1.22.2.2 @@ -1,8 +1,8 @@ -if {(![info exists edit_p] || $edit_p eq "")} { +if {![info exists edit_p] || $edit_p eq ""} { set edit_p 0 } -if {(![info exists feedback_only_p] || $feedback_only_p eq "") } { +if {![info exists feedback_only_p] || $feedback_only_p eq ""} { set feedback_only_p 0 } if {![info exists assessment_id]} { @@ -17,9 +17,15 @@ # if we can tell this is the last section, next button should go to feedback for the entire assessment. -set section_list [as::assessment::sections -assessment_id $assessment_id -session_id $session_id -sort_order_type $assessment_data(section_navigation) -random_p $assessment_data(random_p)] +set section_list [as::assessment::sections \ + -assessment_id $assessment_id \ + -session_id $session_id \ + -sort_order_type $assessment_data(section_navigation) \ + -random_p $assessment_data(random_p)] -if {(![info exists next_url] || $next_url eq "") && [lsearch $section_list $section_id] eq [expr {[llength $section_list]-1}]} { +if {(![info exists next_url] || $next_url eq "") + && [lsearch $section_list $section_id] eq [llength $section_list]-1 +} { set next_url [export_vars -base session {session_id next_url}] } @@ -36,6 +42,7 @@ ad_form -name Xsession_results_$section_id -mode display -form { {section_id:text(hidden) {value $section_id}} } + set feedback_count 0 set admin_package_url [ad_conn package_url]asm-admin/ db_multirow -extend { presentation_type html result_points feedback answered_p choice_orientation next_as_item_id next_pr_type num content has_feedback_p correct_p view item_edit_general_url results_edit_url} items session_items {} { @@ -50,10 +57,13 @@ if {$presentation_type eq "fitb"} { regsub -all -line -nocase -- {