--- loncom/interface/lonprintout.pm 2010/05/22 01:07:47 1.576 +++ loncom/interface/lonprintout.pm 2010/05/24 09:21:18 1.577 @@ -2,7 +2,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.576 2010/05/22 01:07:47 raeburn Exp $ +# $Id: lonprintout.pm,v 1.577 2010/05/24 09:21:18 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -228,6 +228,8 @@ sub generate_code_selector { !\$helper->{'VARS'}{'CODE_SELECTED_FROM_LIST'}) { return &Apache::lonprintout::is_code_valid(\$helper->{'VARS'}{'SINGLE_CODE'}, \$helper->{'VARS'}{'CODE_OPTION'}); + } elsif (\$helper->{'VARS'}{'SINGLE_CODE'} ne ''){ + return 'Specifying a code name is incompatible with what you have specified above'; } else { return undef; # Other forces control us. } @@ -3754,6 +3756,8 @@ CHOOSE_STUDENTS1 !\$helper->{'VARS'}{'CODE_SELECTED_FROM_LIST'}) { return &Apache::lonprintout::is_code_valid(\$helper->{'VARS'}{'SINGLE_CODE'}, \$helper->{'VARS'}{'CODE_OPTION'}); + } elsif (\$helper->{'VARS'}{'SINGLE_CODE'} ne ''){ + return 'Specifying a code name is incompatible with what you have specified above'; } else { return undef; # Other forces control us. }