--- loncom/homework/lonhomework.pm 2024/12/10 04:55:03 1.388 +++ loncom/homework/lonhomework.pm 2024/12/13 05:04:49 1.389 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.388 2024/12/10 04:55:03 raeburn Exp $ +# $Id: lonhomework.pm,v 1.389 2024/12/13 05:04:49 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2112,7 +2112,11 @@ sub run_passback { $no_passback .= " LTI launcher $linkprotector ($appname) for $linkuri (${cdom}_${cnum})"; &Apache::lonnet::logthis($no_passback." for $uname:$udom"); &Apache::lonnet::log($udom,$uname,$uhome,"$no_passback score=$score total=$total poss=$possible"); - &Apache::lonnet::put('linkprot_passback_pending',$item,$cdom,$cnum); + if ($item->{'linkprot'}) + my $pendingkey = &Time::HiRes::time().':'.$uname.':'.$udom.':'. + "$linkuri\0$linkprotector\0$scope"; + &Apache::lonnet::put('linkprot_passback_pending',{$pendingkey => $item},$cdom,$cnum); + } } } }