[LON-CAPA-cvs] cvs: loncom /interface lonindexer.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 02 Jul 2004 08:01:21 -0000


albertel		Fri Jul  2 04:01:21 2004 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  - 'select' in randomlabel search was failing to work due to thinking blank was a valid HTML form element name.
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.117 loncom/interface/lonindexer.pm:1.118
--- loncom/interface/lonindexer.pm:1.117	Tue Jun 22 09:27:51 2004
+++ loncom/interface/lonindexer.pm	Fri Jul  2 04:01:20 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.117 2004/06/22 13:27:51 www Exp $
+# $Id: lonindexer.pm,v 1.118 2004/07/02 08:01:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -136,7 +136,8 @@
    if ($ENV{'form.launch'} eq '2') {
        $r->content_type('text/html');
        my $extra='';
-       if (defined($ENV{'form.titleelement'})) {
+       if (defined($ENV{'form.titleelement'}) && 
+	   $ENV{'form.titleelement'} ne '') {
 	   my $verify_title = &Apache::lonnet::gettitle($ENV{'form.acts'});
 #	   &Apache::lonnet::logthis("Hrrm $ENV{'form.acts'} -- $verify_title");
 	   $verify_title=~s/'/\\'/g;