MarkUsProject/Markus — pull request #940 by mikeing2001 (2012-12-03 03:52:40+00:00)
Title: Old marks not showing for remark request using postgresql

Fix issue #904

The issue is that when querying the old_result in postgresql there was an assumption made that the oldest result with a certain submission_id will be the old result. However, this is not that case. This fix, does a query and sort by result_id to look for the oldest id with the given submission_id.

This change also fixed a failing test case.

Testing
- Code tested against Mysql and postgresql