Fix for removing a CrontabEntry
Brought to you by:
iolalla
I noticed that the currently implementation of FileSource.java seems to have an issue with removing CrontabEntry's. Specifically, when I tried to remove just 1 entry, all entries were removed.
For example:
CrontabEntryBean[] beans = CrontabEntryDAO.getInstance().findAll();
CrontabEntryDAO.getInstance().remove(beans[1]);
This code should remove just 1 entry (the second one in the list) but instead removes all of them when they are written to disk.
I have attached a patch which appears to do what we expect and remove only the beans we want.
Steve
Patch for FileSource.remove()