--- loncom/interface/slotrequest.pm 2006/03/30 04:37:22 1.48.2.2 +++ loncom/interface/slotrequest.pm 2006/03/30 05:13:38 1.48.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler for requesting to have slots added to a students record # -# $Id: slotrequest.pm,v 1.48.2.2 2006/03/30 04:37:22 albertel Exp $ +# $Id: slotrequest.pm,v 1.48.2.3 2006/03/30 05:13:38 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1084,14 +1084,15 @@ EDITLINK Delete DELETELINK - my $remove_all=&remove_link($slot,'remove all'); + my $remove_all=&remove_link($slot,'remove all').'
'; if ($ids ne '') { undef($delete); } - if ($slots{$slot}{'type'} ne 'schedulable_student') { + if ($slots{$slot}{'type'} ne 'schedulable_student' + || $ids eq '') { undef($remove_all); } - $r->print("\n$edit $delete $remove_all\n"); + $r->print("\n$edit $delete\n"); if (exists($show{'name'})) { $colspan++;$r->print("$slot"); } @@ -1126,7 +1127,7 @@ DELETELINK $colspan++;$r->print("$unique\n"); } if (exists($show{'scheduled'})) { - $colspan++;$r->print("$ids\n\n"); + $colspan++;$r->print("$remove_all $ids\n\n"); } if (exists($show{'proctor'})) { $r->print(<