--- loncom/interface/lonmeta.pm 2006/08/08 21:32:36 1.166 +++ loncom/interface/lonmeta.pm 2006/08/10 22:19:06 1.168 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Metadata display handler # -# $Id: lonmeta.pm,v 1.166 2006/08/08 21:32:36 banghart Exp $ +# $Id: lonmeta.pm,v 1.168 2006/08/10 22:19:06 banghart Exp $ # # Copyright Michigan State University Board of Trustees # @@ -365,14 +365,18 @@ sub pre_select_course { $r->print('<p>'.&mt('If you would like to associate this resource ([_1]) with a current or previous course, please select one from the list below, otherwise select, \'None\'','<tt>'.$res_uri.'</tt>').'</p>'); $output = &select_course(); $r->print($output.'<br /><input type="submit" name="store" value="'. - &mt('Associate Resource With Selected Course').'">'); + &mt('Associate Resource With Selected Course').'" />'); $r->print('</form>'); my ($port_path,$group) = &get_port_path_and_group($uri); - $r->print('<br /><br /><form method="POST" action="'.$port_path.'">'. + my $group_input; + if ($group) { + $group_input = '<input type="hidden" name="group" value="'.$group.'" />'; + } + $r->print('<br /><br /><form method="post" action="'.$port_path.'">'. '<input type="hidden" name="currentpath" value="'.$path.'" />'. - '<input type="hidden" name="group" value="'.$group.'" />'. - '<input type="submit" name="cancel" value="'.&mt('Cancel').'">'. + $group_input. + '<input type="submit" name="cancel" value="'.&mt('Cancel').'" />'. '</form>'); return;