[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm

raeburn raeburn at source.lon-capa.org
Fri May 10 10:24:54 EDT 2019


raeburn		Fri May 10 14:24:54 2019 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Domain configuration for availability of ("directory" and "non-directory"
    user information) when a user from one domain is assigned role in another.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.359 loncom/interface/domainprefs.pm:1.360
--- loncom/interface/domainprefs.pm:1.359	Mon May  6 19:28:17 2019
+++ loncom/interface/domainprefs.pm	Fri May 10 14:24:53 2019
@@ -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 @@
                                                        '',$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 .= '<tr'.$css_class.'>'.
+                                  '<td class="LC_left_item">'.$title.'</td>'.
+                                  '<td class="LC_left_item">'.
+                                  &mt('Nothing to set here, as there are no other domains').
+                                  '</td></tr>';
+                    $itemcount ++;
+                }
             }
         }
     } else {




More information about the LON-CAPA-cvs mailing list