--- loncom/interface/lonwishlist.pm 2014/01/29 16:25:44 1.19 +++ loncom/interface/lonwishlist.pm 2014/02/28 19:24:03 1.21 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Utility-routines for wishlist # -# $Id: lonwishlist.pm,v 1.19 2014/01/29 16:25:44 bisitz Exp $ +# $Id: lonwishlist.pm,v 1.21 2014/02/28 19:24:03 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -197,7 +197,7 @@ sub newEntry() { my $date = gmtime(); # Create Entry-Object my $entry = Entry->new(title => $title, path => $path, note => $note, date => $date); - # Create Tree-Object, this correspones a node in the wishlist-tree + # Create Tree-Object, this corresponds a node in the wishlist-tree my $tree = Tree->new($entry); # Add this node to wishlist-tree my $folderIndex = $env{'form.folders'}; @@ -1042,6 +1042,12 @@ sub JSforImport{ function finish_import() { opener.document.forms.simpleedit.importdetail.value=''; for (var num = 0; num < document.forms.groupsort.fnum.value; num++) { + try { + eval("document.forms.groupsort.filelink"+num+".value"); + } + catch(err) { + continue; + } if (eval("document.forms.groupsort.check"+num+".checked") && eval("document.forms.groupsort.filelink"+num+".value") != '') { opener.document.forms.simpleedit.importdetail.value+='&'+ eval("document.forms.groupsort.title"+num+".value")+'='+