[Opensource] Bug in UserPreference

James Haugen haugenjames at hotmail.com
Wed Aug 7 17:28:25 PDT 2002


Correct me if wrong but the delete() has bug in it:

public void deletedUser(User user) throws DBException {
        UserPreference u = new UserPreference();
        u.setDBName(user.getDBName());
*****************************************************
        u.setField("ExpUid", user.getLoginName());
****************************************************
        UserPreference onePreference = null;
        for (Enumeration e = u.searchAndRetrieve().elements(); 
e.hasMoreElements();) {
            onePreference = (UserPreference) e.nextElement();
            onePreference.delete();
        }
    }

This should be:

u.setField("ExpUid", user.getUid());

I was sure if this had been fixed since I checked out the project.

James

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the Opensource mailing list