[LON-CAPA-cvs] cvs: loncom(version_2_4_X) /interface portfolio.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Tue, 10 Jul 2007 20:57:12 -0000


albertel		Tue Jul 10 16:57:12 2007 EDT

  Modified files:              (Branch: version_2_4_X)
    /loncom/interface	portfolio.pm 
  Log:
  - backport 1.186
  
  
Index: loncom/interface/portfolio.pm
diff -u loncom/interface/portfolio.pm:1.184 loncom/interface/portfolio.pm:1.184.2.1
--- loncom/interface/portfolio.pm:1.184	Mon Jun 11 17:29:44 2007
+++ loncom/interface/portfolio.pm	Tue Jul 10 16:57:10 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # portfolio browser
 #
-# $Id: portfolio.pm,v 1.184 2007/06/11 21:29:44 albertel Exp $
+# $Id: portfolio.pm,v 1.184.2.1 2007/07/10 20:57:10 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1733,7 +1733,8 @@
                     fileList = fileList + document.forms.checkselect.currentpath.value + document.forms.checkselect[i].value + "," ;
                 }
             }
-            opener.document.forms.lonhomework.$env{'form.fieldname'}.value=fileList;
+            var hwfield = opener.document.getElementsByName('$env{'form.fieldname'}');
+            hwfield[0].value = fileList;
             self.close();
         }
         </script>