[LON-CAPA-cvs] cvs: loncom /lti ltipassback.pm

raeburn raeburn at source.lon-capa.org
Sat Dec 9 11:20:24 EST 2017


raeburn		Sat Dec  9 16:20:24 2017 EDT

  Modified files:              
    /loncom/lti	ltipassback.pm 
  Log:
  - Use result_resultvaluesourcedid from POSTed data.
  
  
Index: loncom/lti/ltipassback.pm
diff -u loncom/lti/ltipassback.pm:1.1 loncom/lti/ltipassback.pm:1.2
--- loncom/lti/ltipassback.pm:1.1	Sat Dec  9 01:36:59 2017
+++ loncom/lti/ltipassback.pm	Sat Dec  9 16:20:24 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # LTI Consumer Module to receive grades passed back by Provider 
 #
-# $Id: ltipassback.pm,v 1.1 2017/12/09 01:36:59 raeburn Exp $
+# $Id: ltipassback.pm,v 1.2 2017/12/09 16:20:24 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -222,10 +222,10 @@
 
     my ($result,$resulttype,$lang,$pcf);
     if (exists($params->{'result_resultvaluesourcedid'})) {
-        $resulttype = 'decimal';
-    } else {
         $resulttype = $params->{'result_resultvaluesourcedid'};
         $resulttype =~ s/(^\s+|\s+)$//g;
+    } else {
+        $resulttype = 'decimal';
     } 
     $result = $params->{'result_resultscore_textstring'};
     $result =~ s/(^\s+|\s+)$//g;




More information about the LON-CAPA-cvs mailing list