--- loncom/interface/domainprefs.pm 2019/05/06 19:28:17 1.359 +++ loncom/interface/domainprefs.pm 2019/05/10 14:24:53 1.360 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.359 2019/05/06 19:28:17 raeburn Exp $ +# $Id: domainprefs.pm,v 1.360 2019/05/10 14:24:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -5904,7 +5904,26 @@ sub print_privacy { '',$othertitle); $itemcount ++; } else { - $datatable .= &mt('Nothing to set here, as there are no other domains'); + my (@insttypes,%insttitles); + if ((ref($types) eq 'ARRAY') && (ref($usertypes) eq 'HASH')) { + @insttypes = @{$types}; + %insttitles = %{$usertypes}; + } + foreach my $item (@insttypes,'default') { + my $title; + if ($item eq 'default') { + $title = $othertitle; + } else { + $title = $insttitles{$item}; + } + $css_class = $itemcount%2?' class="LC_odd_row"':''; + $datatable .= '