git://git.furryclan.net
/
furrycat
/
race-o-matic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fca6b37
)
Sort most recent event first when adding entries.
master
author
CMDR furrycat
<elite@furrycat.net>
Thu, 9 Feb 2017 14:58:01 +0000
(09:58 -0500)
committer
CMDR furrycat
<elite@furrycat.net>
Thu, 9 Feb 2017 14:58:01 +0000
(09:58 -0500)
lib/entry.php
patch
|
blob
|
history
diff --git
a/lib/entry.php
b/lib/entry.php
index
761f805
..
34b7a41
100644
(file)
--- a/
lib/entry.php
+++ b/
lib/entry.php
@@
-317,6
+317,9
@@
}
$rq = new RaceQuery;
+ $rq->joinWith('Race.Event');
+ $rq->orderBy('Event.StartTime', 'desc');
+ $rq->orderByClassName();
$races = $rq->find();
if (! count($races)) {
echo "<p>Add races before submitting entries.</p>\n";