Issue with unregistering for a class in SharePoint 2007 Fab 40 template

One of my customers is using the “Employee Training Scheduling and Materials” template that comes with the SharePoint 2007 “Fab 40” templates.  We encountered an issue where users attempting to unregister for a course from the main page of the site were unregistering other users.  The unregister functionality worked properly if the user opened the registration record and unregistered.

The issue can be corrected by modifying the “default.aspx” page of the site.  Replace the following lines (put the “<a href…” on a single line without the new line)…

image

with…

image

The issue is that the logic in “default.aspx” is not accounting for multiple records being returned.

Hope that helps!