--- loncom/xml/lonxml.pm 2007/05/14 08:42:13 1.445 +++ loncom/xml/lonxml.pm 2007/05/17 21:00:59 1.446 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.445 2007/05/14 08:42:13 albertel Exp $ +# $Id: lonxml.pm,v 1.446 2007/05/17 21:00:59 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1748,8 +1748,8 @@ sub register_insert_xml { my $allow = $insertlist{"$tag.allow"}; foreach my $element (split(',',$allow)) { $element =~ s/(^\s*|\s*$ )//gx; - if (exists($insertlist{"$element.show"}) - && $insertlist{"$element.show"} ne 'no') { + if (!exists($insertlist{"$element.show"}) + || $insertlist{"$element.show"} ne 'no') { push(@{ $insertlist{$tag.'.which'} },$element); } }