From 054c62dfa8d92f830386d8da63041f7caeba1567 Mon Sep 17 00:00:00 2001 From: james Date: Thu, 17 Jun 2010 19:31:50 +0000 Subject: [PATCH] Couple small tweaks - science olympics event rename to science olympics activity, sort events by eventtype first --- admin/events.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/events.php b/admin/events.php index 59013f7..6ba4c83 100644 --- a/admin/events.php +++ b/admin/events.php @@ -58,7 +58,7 @@ $editor = new TableEditor('events', ) ); $eventtypes=array( array('key'=>"general", 'val'=>"General"), - array('key'=>"scienceolympic", 'val'=>"Science Olympics Event"), + array('key'=>"scienceolympic", 'val'=>"Science Olympics Activity"), array('key'=>"sciencefairjudging", 'val'=>"Science Fair Judging"), array('key'=>"tour", 'val'=>"Tour") ); @@ -66,7 +66,7 @@ $eventtypes=array( array('key'=>"general", 'val'=>"General"), $editor->setFieldOptions("eventtype",$eventtypes); $editor->setPrimaryKey("id"); $editor->setRecordType("Event"); -$editor->setDefaultSortField("name"); +$editor->setDefaultSortField("eventtype,name"); $editor->filterList("conferences_id", $conference['id']); $editor->execute();