[LON-CAPA-cvs] cvs: loncom /interface lonwhatsnew.pm
banghart
lon-capa-cvs@mail.lon-capa.org
Thu, 23 Nov 2006 00:15:57 -0000
banghart Wed Nov 22 19:15:57 2006 EDT
Modified files:
/loncom/interface lonwhatsnew.pm
Log:
Bug 5085 (part 2). Don't save empty values.
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.64 loncom/interface/lonwhatsnew.pm:1.65
--- loncom/interface/lonwhatsnew.pm:1.64 Wed Nov 22 19:02:38 2006
+++ loncom/interface/lonwhatsnew.pm Wed Nov 22 19:15:56 2006
@@ -1,5 +1,5 @@
#
-# $Id: lonwhatsnew.pm,v 1.64 2006/11/23 00:02:38 banghart Exp $
+# $Id: lonwhatsnew.pm,v 1.65 2006/11/23 00:15:56 banghart Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1002,7 +1002,7 @@
next if ($_!~/^form\.(.+)\_setparmval$/);
my $name = $1;
my $value = $env{'form.'.$name.'_value'};
- if ($name && defined($value)) {
+ if ($name && defined($value) && ($value ne '')) {
my $put_result = &Apache::lonnet::put('nohist_whatsnew',
{$name=>$value},$udom,$uname);