Fixes dashboard sorting
Closes #681 (closed)
What does this MR do?
The dashboard sorting failes when there are events (Termine) in it since they don't have a time attribute. This leads to an exception and thus prevents the further execution of the sort function. The current state is as follows: the events get listed on top. In the dashboard activity they are not shown. This behavior does not change by this fix but it will fix the sorting of the page.
How confident are you it won't break things if deployed?
Links to related issues
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s))
Merge request reports
Activity
added forOnly in beta prio1 (showstopper) typeBug + 1 deleted label
About testing: is there already some place to test such behavior? It is a bit harder to test since we need to create a wallpost or message, an event and then again a wallpost or message to check if all three are shown in the right order. Not sure where to start for an automated test to be honest.
changed milestone to %October 2019 release