Merge branch 'bugfix' into develop

* bugfix:
  fixed a bugg where events didnt order properly
This commit is contained in:
Fredrik Norberg 2011-08-02 14:38:28 +02:00
commit bbd3362e8d

@ -154,7 +154,17 @@ public abstract class Event extends LazyDeletableDomainObject
@Override
public int compareTo(Event other) {
return (int) (dueDate.getTime() - other.dueDate.getTime());
int dcomp = dueDate.compareTo(other.dueDate);
if (dcomp == 0){
if (id == null){
return -1;
}else if(other.id == null){
return 1;
}
else return id.compareTo(other.id);
}
return dcomp;
}
public Panel getDisplayPanel(String id){