--- loncom/interface/domainprefs.pm 2018/11/06 15:37:37 1.340 +++ loncom/interface/domainprefs.pm 2018/11/18 22:50:52 1.341 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to set domain-wide configuration settings # -# $Id: domainprefs.pm,v 1.340 2018/11/06 15:37:37 raeburn Exp $ +# $Id: domainprefs.pm,v 1.341 2018/11/18 22:50:52 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3581,7 +3581,7 @@ sub print_contacts { $sysmail = $defaults->{'sysmail'}; } if (ref($lonstatus{'weights'}) eq 'HASH') { - foreach my $type ('E','W','N') { + foreach my $type ('E','W','N','U') { if ($lonstatus{'weights'}{$type} =~ /^\d+$/) { $weights{$type} = $lonstatus{'weights'}{$type}; } else { @@ -3589,7 +3589,7 @@ sub print_contacts { } } } else { - foreach my $type ('E','W','N') { + foreach my $type ('E','W','N','U') { $weights{$type} = $defaults->{$type}; } } @@ -3610,7 +3610,7 @@ sub print_contacts { ''. ''.$titles->{'errorweights'}. ''; - foreach my $type ('E','W','N') { + foreach my $type ('E','W','N','U') { $datatable .= ''; @@ -13019,7 +13019,7 @@ sub modify_contacts { if ((ref($contacts_hash{contacts}{lonstatus}) eq 'HASH') && (ref($contacts_hash{contacts}{lonstatus}{$key}) eq 'HASH')) { if (ref($currsetting{'lonstatus'}{$key}) eq 'HASH') { - foreach my $type ('E','W','N') { + foreach my $type ('E','W','N','U') { unless ($contacts_hash{contacts}{lonstatus}{$key}{$type} eq $currsetting{'lonstatus'}{$key}{$type}) { push(@{$changes{'lonstatus'}},$key); @@ -13027,7 +13027,7 @@ sub modify_contacts { } } } else { - foreach my $type ('E','W','N') { + foreach my $type ('E','W','N','U') { if ($contacts_hash{contacts}{lonstatus}{$key}{$type} ne '') { push(@{$changes{'lonstatus'}},$key); last; @@ -13035,7 +13035,7 @@ sub modify_contacts { } } } elsif (ref($currsetting{'lonstatus'}{$key}) eq 'HASH') { - foreach my $type ('E','W','N') { + foreach my $type ('E','W','N','U') { if ($currsetting{'lonstatus'}{$key}{$type} ne '') { push(@{$changes{'lonstatus'}},$key); last; @@ -13270,7 +13270,7 @@ sub modify_contacts { $defval{'threshold'} = $lonstatus_defs->{'threshold'}; $defval{'sysmail'} = $lonstatus_defs->{'sysmail'}; $defval{'weights'} = - join(', ',map { $lonstatus_names->{$_}.'='.$lonstatus_defs->{$_}; } ('E','W','N')); + join(', ',map { $lonstatus_names->{$_}.'='.$lonstatus_defs->{$_}; } ('E','W','N','U')); $defval{'excluded'} = &mt('None'); if (ref($contacts_hash{'contacts'}{'lonstatus'}) eq 'HASH') { foreach my $item ('threshold','sysmail','weights','excluded') { @@ -13279,7 +13279,7 @@ sub modify_contacts { $shown{$item} = $contacts_hash{'contacts'}{'lonstatus'}{$item}; } elsif ($item eq 'weights') { if (ref($contacts_hash{'contacts'}{'lonstatus'}{$item}) eq 'HASH') { - foreach my $type ('E','W','N') { + foreach my $type ('E','W','N','U') { $shown{$item} .= $lonstatus_names->{$type}.'='; if (exists($contacts_hash{'contacts'}{'lonstatus'}{$item}{$type})) { $shown{$item} .= $contacts_hash{'contacts'}{'lonstatus'}{$item}{$type};
'.$names->{$type}.'
'. '