--- loncom/homework/essayresponse.pm 2014/12/06 17:46:40 1.121 +++ loncom/homework/essayresponse.pm 2014/12/06 20:08:16 1.122 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # essay (ungraded) style responses # -# $Id: essayresponse.pm,v 1.121 2014/12/06 17:46:40 raeburn Exp $ +# $Id: essayresponse.pm,v 1.122 2014/12/06 20:08:16 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -534,7 +534,7 @@ sub file_submission { my @todelete = map { "/uploaded/$udom/$uname/portfolio".$_; } keys(%port_delete); if (@tolock || @todelete) { if (ref($info) eq 'HASH') { - if ($info->{'ip'}) { + if (($info->{'ip'}) && ($info->{'is_submit'})) { my @adds; if (@tolock) { @adds = map { "/uploaded/$udom/$uname/portfolio".$_; } @tolock;