--- loncom/homework/essayresponse.pm	2007/10/08 09:22:50	1.85
+++ loncom/homework/essayresponse.pm	2008/02/01 22:05:45	1.87
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.85 2007/10/08 09:22:50 foxr Exp $
+# $Id: essayresponse.pm,v 1.87 2008/02/01 22:05:45 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -184,9 +184,10 @@ sub end_essayresponse {
 
     if ($target eq 'grade' || $target eq 'web' || $target eq 'answer' ||
 	$target eq 'tex' || $target eq 'analyze') {
-	&Apache::lonxml::increment_counter($increment, $part);
+	&Apache::lonxml::increment_counter($increment, "$part.$id");
 
 	if ($target eq 'analyze') {
+            $Apache::lonhomework::analyze{"$part.$id.type"} = 'essayresponse';
 	    &Apache::lonhomework::set_bubble_lines();
 	}
     }