--- loncom/interface/loncommon.pm 2005/11/08 03:12:35 1.284 +++ loncom/interface/loncommon.pm 2005/11/15 16:04:14 1.291 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.284 2005/11/08 03:12:35 albertel Exp $ +# $Id: loncommon.pm,v 1.291 2005/11/15 16:04:14 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.='