--- loncom/interface/lontrackstudent.pm 2014/04/15 12:05:41 1.37 +++ loncom/interface/lontrackstudent.pm 2017/11/12 23:06:51 1.40 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lontrackstudent.pm,v 1.37 2014/04/15 12:05:41 bisitz Exp $ +# $Id: lontrackstudent.pm,v 1.40 2017/11/12 23:06:51 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -185,7 +185,7 @@ sub get_max_time_in_db { &Apache::lonhtmlcommon::Update_PrgWin ($r,$prog_state,&mt('Parsing results')); # - if (! open(TIMEDATA,$results_file)) { + if (! open(TIMEDATA,"<",$results_file)) { $r->print('

'.&mt('Unable to read results file.').'

'. '

'. &mt('This is a serious error and has been logged.'). @@ -254,7 +254,7 @@ sub output_results { $r->print('

'.&mt('So far, no data has been returned for your request').'

'); return -1; } - if (! open(ACTIVITYDATA,$results_file)) { + if (! open(ACTIVITYDATA,"<",$results_file)) { $r->print('

'.&mt('Unable to read results file.').'

'. '

'. &mt('This is a serious error and has been logged.'). @@ -432,7 +432,7 @@ sub convert_timezone { sub display_values { my ($action,$values)=@_; my $result=''; - if ($action eq 'CSTORE') { + if (($action eq 'CSTORE') || ($action eq 'PUTSTORE')) { my $is_anon; my %values=map {split('=',$_,-1)} split(/\&/,$values); foreach my $key (sort(keys(%values))) { @@ -580,6 +580,7 @@ sub handler { my $args; if ($env{'form.only_body'}) { $args = { only_body => 1, }; + $args->{'add_progressbar'} = 1; } $r->print(&Apache::loncommon::start_page('Student Activity',&styles(),$args). &Apache::lonhtmlcommon::breadcrumbs('Student Activity'));