[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm
raeburn
lon-capa-cvs-allow@mail.lon-capa.org
Sat, 08 Dec 2007 00:03:33 -0000
raeburn Fri Dec 7 19:03:33 2007 EDT
Modified files:
/loncom/interface loncommon.pm
Log:
Bug 5482
- key for default portfolio quotas in a domain in configuration.db is 'quotas' NOT 'quota'.
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.621 loncom/interface/loncommon.pm:1.622
--- loncom/interface/loncommon.pm:1.621 Wed Dec 5 13:40:47 2007
+++ loncom/interface/loncommon.pm Fri Dec 7 19:03:32 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common routines
#
-# $Id: loncommon.pm,v 1.621 2007/12/05 18:40:47 albertel Exp $
+# $Id: loncommon.pm,v 1.622 2007/12/08 00:03:32 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -6147,24 +6147,24 @@
my ($udom,$inststatus) = @_;
my ($defquota,$settingstatus);
my %quotahash = &Apache::lonnet::get_dom('configuration',
- ['quota'],$udom);
- if (ref($quotahash{'quota'}) eq 'HASH') {
+ ['quotas'],$udom);
+ if (ref($quotahash{'quotas'}) eq 'HASH') {
if ($inststatus ne '') {
my @statuses = split(/:/,$inststatus);
foreach my $item (@statuses) {
- if ($quotahash{'quota'}{$item} ne '') {
+ if ($quotahash{'quotas'}{$item} ne '') {
if ($defquota eq '') {
- $defquota = $quotahash{'quota'}{$item};
+ $defquota = $quotahash{'quotas'}{$item};
$settingstatus = $item;
- } elsif ($quotahash{'quota'}{$item} > $defquota) {
- $defquota = $quotahash{'quota'}{$item};
+ } elsif ($quotahash{'quotas'}{$item} > $defquota) {
+ $defquota = $quotahash{'quotas'}{$item};
$settingstatus = $item;
}
}
}
}
if ($defquota eq '') {
- $defquota = $quotahash{'quota'}{'default'};
+ $defquota = $quotahash{'quotas'}{'default'};
$settingstatus = 'default';
}
} else {