[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 14 Mar 2003 19:35:54 -0000
albertel Fri Mar 14 14:35:54 2003 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
- this seems to fix the default cascade problem, now package defaults are forced to exist for only part 0, and only if the resource itself doesn't force a part 0 default.
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.339 loncom/lonnet/perl/lonnet.pm:1.340
--- loncom/lonnet/perl/lonnet.pm:1.339 Fri Mar 14 10:08:20 2003
+++ loncom/lonnet/perl/lonnet.pm Fri Mar 14 14:35:54 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.339 2003/03/14 15:08:20 albertel Exp $
+# $Id: lonnet.pm,v 1.340 2003/03/14 19:35:54 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3114,6 +3114,7 @@
$value.=' [Part: '.$part.']';
}
my $unikey='parameter'.$keyroot.'_'.$name;
+ if ($subp eq 'default') { $unikey='parameter_0_'.$name; }
$metathesekeys{$unikey}=1;
$metacache{$uri.':'.$unikey.'.part'}=$part;
unless (defined($metacache{$uri.':'.$unikey.'.'.$subp})) {