--- loncom/interface/loncommon.pm 2005/11/08 20:23:41 1.285 +++ loncom/interface/loncommon.pm 2005/11/15 18:07:46 1.292 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.285 2005/11/08 20:23:41 albertel Exp $ +# $Id: loncommon.pm,v 1.292 2005/11/15 18:07:46 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1149,7 +1149,7 @@ sub domain_select { } &get_domains; if ($multiple) { $domains{''}=&mt('Any domain'); - return &multiple_select_form($name,$value,4,%domains); + return &multiple_select_form($name,$value,4,\%domains); } else { return &select_form($name,$value,%domains); } @@ -1159,7 +1159,7 @@ sub domain_select { =pod -=item * multiple_select_form($name,$value,$size,%hash) +=item * multiple_select_form($name,$value,$size,$hash,$order) Returns a string containing a "; - my @order = ref($order) ? @{$order} + my @order = ref($order) ? @$order : sort(keys(%$hash)); foreach my $key (@order) { $output.='