File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -750,7 +750,8 @@ public function getGroupedAffiliations(Contest $contest): array
750
750
->leftJoin ('t.affiliation ' , 'affil ' )
751
751
->andWhere ('cat.visible = 1 ' )
752
752
->orderBy ('cat.name ' )
753
- ->addOrderBy ('affil.name ' );
753
+ ->addOrderBy ('affil.name ' )
754
+ ->addOrderBy ('t.name ' );
754
755
755
756
if (!$ contest ->isOpenToAllTeams ()) {
756
757
$ queryBuilder
Original file line number Diff line number Diff line change 67
67
<div class =" card-body" >
68
68
<ul class =" list-group list-group-flush" >
69
69
{% for affiliation in affiliations %}
70
- {% if affiliation .color is null %}
70
+ {% if affiliation .color is not defined or affiliation . color is null %}
71
71
{% set color = " #FFFFFF" %}
72
72
{% set colorClass = " _FFFFFF" %}
73
73
{% else %}
74
74
{% set colorClass = affiliation .color | replace({" #" : " _" }) %}
75
75
{% endif %}
76
76
<li class =" list-group-item cl{{ colorClass }}" >
77
- {% if showFlags %}
77
+ {% if showFlags and affiliation . country is defined %}
78
78
{{ affiliation .country | countryFlag }}
79
79
{% endif %}
80
80
{% set affiliationLogo = affiliation .id | assetPath(' affiliation' ) %}
You can’t perform that action at this time.
0 commit comments