--- loncom/interface/lonpickcourse.pm 2017/01/03 17:47:57 1.124 +++ loncom/interface/lonpickcourse.pm 2017/01/05 16:17:11 1.125 @@ -1,7 +1,7 @@ # The LearningOnline Network # Pick a course # -# $Id: lonpickcourse.pm,v 1.124 2017/01/03 17:47:57 raeburn Exp $ +# $Id: lonpickcourse.pm,v 1.125 2017/01/05 16:17:11 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,7 +44,7 @@ sub handler { if ($env{'form.context'} eq 'adhoc') { &Apache::loncommon::content_type($r,'application/json'); $r->send_http_header; - my ($possroles,$description) = &Apache::lonnet::get_my_adhocroles($env{'form.cid'}); + my ($possroles,$description) = &Apache::lonnet::get_my_adhocroles($env{'form.cid'},1); if ((ref($possroles) eq 'ARRAY') && (ref($description) eq 'HASH')) { my $response = []; if (@{$possroles}) { @@ -440,7 +440,7 @@ sub display_matched_courses { $action = '/adm/portfolio'; } my $numcourses = keys(%courses); - $r->print('