[LON-CAPA-cvs] cvs: loncom /auth lonroles.pm

raeburn raeburn at source.lon-capa.org
Tue Oct 17 10:43:03 EDT 2023


raeburn		Tue Oct 17 14:43:03 2023 EDT

  Modified files:              
    /loncom/auth	lonroles.pm 
  Log:
  - Show correct role name for currently selected ad hoc helpdesk role in course.
  
  
Index: loncom/auth/lonroles.pm
diff -u loncom/auth/lonroles.pm:1.370 loncom/auth/lonroles.pm:1.371
--- loncom/auth/lonroles.pm:1.370	Tue Jun 20 14:04:02 2023
+++ loncom/auth/lonroles.pm	Tue Oct 17 14:43:03 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # User Roles Screen
 #
-# $Id: lonroles.pm,v 1.370 2023/06/20 14:04:02 raeburn Exp $
+# $Id: lonroles.pm,v 1.371 2023/10/17 14:43:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1801,9 +1801,9 @@
                                 foreach my $rolename (sort(keys(%{$domdef{'adhocroles'}}))) {
                                     if (ref($domdef{'adhocroles'}{$rolename}) eq 'HASH') {
                                         $adhocdesc{$tdom}{$rolename} = $domdef{'adhocroles'}{$rolename}{'desc'};
-                                        $desc = $adhocdesc{$tdom}{$rolename};
                                     }
                                 }
+                                $desc = $adhocdesc{$tdom}{$rolename};
                             }
                         }
                         if ($desc ne '') {




More information about the LON-CAPA-cvs mailing list