File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 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
750750 ->leftJoin ('t.affiliation ' , 'affil ' )
751751 ->andWhere ('cat.visible = 1 ' )
752752 ->orderBy ('cat.name ' )
753- ->addOrderBy ('affil.name ' );
753+ ->addOrderBy ('affil.name ' )
754+ ->addOrderBy ('t.name ' );
754755
755756 if (!$ contest ->isOpenToAllTeams ()) {
756757 $ queryBuilder
Original file line number Diff line number Diff line change 6767 <div class =" card-body" >
6868 <ul class =" list-group list-group-flush" >
6969 {% for affiliation in affiliations %}
70- {% if affiliation .color is null %}
70+ {% if affiliation .color is not defined or affiliation . color is null %}
7171 {% set color = " #FFFFFF" %}
7272 {% set colorClass = " _FFFFFF" %}
7373 {% else %}
7474 {% set colorClass = affiliation .color | replace({" #" : " _" }) %}
7575 {% endif %}
7676 <li class =" list-group-item cl{{ colorClass }}" >
77- {% if showFlags %}
77+ {% if showFlags and affiliation . country is defined %}
7878 {{ affiliation .country | countryFlag }}
7979 {% endif %}
8080 {% set affiliationLogo = affiliation .id | assetPath(' affiliation' ) %}
You can’t perform that action at this time.
0 commit comments