if min mentors is >0 only let them select between min and max

This commit is contained in:
james 2004-12-10 20:09:21 +00:00
parent 2744901aac
commit 0ba15a3f4f

View File

@ -140,7 +140,7 @@ else if($newstatus=="complete")
echo "<select name=\"nummentors\" onchange=\"document.forms.nummentorsform.submit()\">\n";
if($registrations_nummentors==null) $sel="selected=\"selected\""; else $sel="";
echo "<option $sel value=\"\">".i18n("Choose")."</option>\n";
for($x=0;$x<=$config['maxmentorsperproject'];$x++)
for($x=$config['minmentorsperproject'];$x<=$config['maxmentorsperproject'];$x++)
{
//dont let them go less than the number we found. to go less, they must delete each record individually
if($x<$numfound)