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

banghart lon-capa-cvs@mail.lon-capa.org
Mon, 05 Dec 2005 20:30:16 -0000


banghart		Mon Dec  5 15:30:16 2005 EDT

  Modified files:              
    /loncom/interface	lonmeta.pm 
  Log:
  	Make single choice selected when student can also type, in 
  	restricted metadata.
  
  
Index: loncom/interface/lonmeta.pm
diff -u loncom/interface/lonmeta.pm:1.133 loncom/interface/lonmeta.pm:1.134
--- loncom/interface/lonmeta.pm:1.133	Tue Nov 22 18:20:40 2005
+++ loncom/interface/lonmeta.pm	Mon Dec  5 15:30:16 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Metadata display handler
 #
-# $Id: lonmeta.pm,v 1.133 2005/11/22 23:20:40 banghart Exp $
+# $Id: lonmeta.pm,v 1.134 2005/12/05 20:30:16 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -523,7 +523,7 @@
              || ($type eq  'abstract')|| ($type eq  'title')|| ($type eq  'standards')) {
             if ($values) {
                 if ($only_one) {
-                    $output .= (&Apache::loncommon::select_form($value,'new_'.$type,%meta_options));
+                    $output .= (&Apache::loncommon::select_form($cur_values_inst[0],'new_'.$type,%meta_options));
                 } else {
                     $output .= (&Apache::loncommon::multiple_select_form('new_'.$type,\@cur_values_inst,undef,\%meta_options));
                 }