[LON-CAPA-cvs] cvs: loncom /homework response.pm
raeburn
raeburn@source.lon-capa.org
Sun, 28 Feb 2010 23:44:36 -0000
raeburn Sun Feb 28 23:44:36 2010 EDT
Modified files:
/loncom/homework response.pm
Log:
- Bug 6119 Anonymous Surveys.
- additional survey types: anonsurvey, anonsurvey_cred, survey_cred.
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.216 loncom/homework/response.pm:1.217
--- loncom/homework/response.pm:1.216 Sun May 24 13:08:18 2009
+++ loncom/homework/response.pm Sun Feb 28 23:44:36 2010
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# various response type definitons response definition
#
-# $Id: response.pm,v 1.216 2009/05/24 13:08:18 www Exp $
+# $Id: response.pm,v 1.217 2010/02/28 23:44:36 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -318,7 +318,10 @@
if ($$previous{'last'}) {
push(@Apache::inputtags::previous,'PREVIOUSLY_LAST');
push(@Apache::inputtags::previous_version,$$previous{'version'});
- } elsif ($Apache::lonhomework::type ne 'survey') {
+ } elsif (($Apache::lonhomework::type ne 'survey') &&
+ ($Apache::lonhomework::type ne 'surveycred') &&
+ ($Apache::lonhomework::type ne 'anonsurvey') &&
+ ($Apache::lonhomework::type ne 'anonsurveycred')) {
push(@Apache::inputtags::previous,'PREVIOUSLY_USED');
push(@Apache::inputtags::previous_version,$$previous{'version'});
}
@@ -907,6 +910,10 @@
}
}
if ($Apache::lonhomework::type eq 'survey') { return 1; }
+ if ($Apache::lonhomework::type eq 'surveycred') { return 1; }
+ if ($Apache::lonhomework::type eq 'anonsurvey') { return 1; }
+ if ($Apache::lonhomework::type eq 'anonsurveycred') { return 1; }
+
return 0;
}