@@ -81,14 +81,15 @@ public function indexAction(Request $request): Response
81
81
->getQuery ()->getResult ();
82
82
83
83
$ table_fields = [
84
- 'cid ' => ['title ' => 'CID ' , 'sort ' => true ],
85
- 'externalid ' => ['title ' => "external ID " , 'sort ' => true ],
86
- 'shortname ' => ['title ' => 'shortname ' , 'sort ' => true ],
87
- 'name ' => ['title ' => 'name ' , 'sort ' => true ],
88
- 'activatetime ' => ['title ' => 'activate ' , 'sort ' => true ],
89
- 'starttime ' => ['title ' => 'start ' , 'sort ' => true ,
90
- 'default_sort ' => true , 'default_sort_order ' => 'desc ' ],
91
- 'endtime ' => ['title ' => 'end ' , 'sort ' => true ],
84
+ 'cid ' => ['title ' => 'CID ' , 'sort ' => true ],
85
+ 'externalid ' => ['title ' => "external ID " , 'sort ' => true ],
86
+ 'shortname ' => ['title ' => 'shortname ' , 'sort ' => true ],
87
+ 'name ' => ['title ' => 'name ' , 'sort ' => true ],
88
+ 'scoreboard_type ' => ['title ' => 'scoreboard type ' , 'sort ' => true ],
89
+ 'activatetime ' => ['title ' => 'activate ' , 'sort ' => true ],
90
+ 'starttime ' => ['title ' => 'start ' , 'sort ' => true ,
91
+ 'default_sort ' => true , 'default_sort_order ' => 'desc ' ],
92
+ 'endtime ' => ['title ' => 'end ' , 'sort ' => true ],
92
93
];
93
94
94
95
$ currentContests = $ this ->dj ->getCurrentContests ();
@@ -137,7 +138,9 @@ public function indexAction(Request $request): Response
137
138
$ contestactions = [];
138
139
// Get whatever fields we can from the contest object itself
139
140
foreach ($ table_fields as $ k => $ v ) {
140
- if ($ propertyAccessor ->isReadable ($ contest , $ k )) {
141
+ if ($ k == 'scoreboard_type ' ) {
142
+ $ contestdata [$ k ] = ['value ' => $ contest ->getScoreboardType ()->value ];
143
+ } elseif ($ propertyAccessor ->isReadable ($ contest , $ k )) {
141
144
$ contestdata [$ k ] = ['value ' => $ propertyAccessor ->getValue ($ contest , $ k )];
142
145
}
143
146
}
0 commit comments