--- loncom/interface/slotrequest.pm 2006/03/30 04:35:58 1.55 +++ loncom/interface/slotrequest.pm 2006/03/30 05:20:44 1.56 @@ -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.55 2006/03/30 04:35:58 albertel Exp $ +# $Id: slotrequest.pm,v 1.56 2006/03/30 05:20:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1142,14 +1142,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"); } @@ -1187,7 +1188,7 @@ DELETELINK $colspan++;$r->print("$allowedusers\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(<