--- loncom/homework/essayresponse.pm 2004/10/30 23:59:00 1.45 +++ loncom/homework/essayresponse.pm 2004/11/13 21:07:20 1.47 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # essay (ungraded) style responses # -# $Id: essayresponse.pm,v 1.45 2004/10/30 23:59:00 banghart Exp $ +# $Id: essayresponse.pm,v 1.47 2004/11/13 21:07:20 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -51,9 +51,9 @@ sub start_essayresponse { my $uploadedfile= &HTML::Entities::encode($Apache::lonhomework::history{"resource.$part.$id.uploadedfile"},'<>&"'); $result='
'; $result.=''; if ($ncol > 0) { @@ -147,7 +147,8 @@ sub end_essayresponse { &Apache::lonxml::whichuser(); foreach (@submitted_files) { my $file = $_; - $Apache::lonhomework::results{"resource.$domain.$crsid.$name.$file"}='true'; + &Apache::lonnet::put('file_permissions', + { $dsymb.$crsid => $file },$domain,$name); } $uploadedflag=1; }
'. - ' '. + ' '. &mt('Submit entries below as answer to receive credit').'
'. - ' '. + ' '. &mt('Save entries below as a draft answer (not submitting them for credit yet)'). '