Skip to content

Commit a2a7e29

Browse files
committed
Summary: Fix meeting agenda crash with groups with no parent (was
using group.parent rather than the ScheduledSession.area hack) - Legacy-Id: 8943
1 parent e6238aa commit a2a7e29

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/templates/meeting/agenda.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ <h2>
181181
{% endif %}
182182

183183
{% if item.timeslot.type.slug == 'break' or item.timeslot.type.slug == 'reg' or item.timeslot.type.slug == 'other' %}
184-
{% with item.timeslot.time|date:"D-Hi"|lower|add:"-"|add:item.session.group.acronym|lower as session_id %}
184+
{% with session_id=item.timeslot.time|date:"D-Hi"|lower|add:"-"|add:item.session.group.acronym|lower %}
185185
<tr id="row-{{session_id}}">
186186
<td class="text-nowrap text-right">
187187
{% if "-utc" in request.path %}
@@ -204,7 +204,7 @@ <h2>
204204

205205
{% if item.timeslot.type.slug = 'session' or item.timeslot.type.slug == 'plenary' %}
206206
{% if item.session.group %}
207-
{% with item.timeslot.time|date:"D-Hi"|lower|add:"-"|add:item.session.group.parent.acronym|lower|add:"-"|add:item.session.group.acronym|lower as session_id %}
207+
{% with session_id=item.timeslot.time|date:"D-Hi"|lower|add:"-"|add:item.area|default:"unknown"|lower|add:"-"|add:item.session.group.acronym|lower %}
208208
<tr id="row-{{session_id}}" {% if item.timeslot.type.slug == 'plenary' %}class="{{item.timeslot.type.slug}}danger"{% endif %}>
209209

210210
{% if item.timeslot.type.slug == 'plenary' %}

0 commit comments

Comments
 (0)