File tree 1 file changed +9
-0
lines changed
src/open_inwoner/cms/cases/views
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,15 @@ def get_context_data(self, **kwargs):
172
172
# The end status data is not passed if the end status has been reached,
173
173
# because in that case the end status data is already included in `statuses`
174
174
end_statustype = next ((s for s in statustypen if s .is_eindstatus ), None )
175
+ # The following check is a eSuite-specific workaround to deal with multiple statustypes per zaaktype having isEindstatus: true
176
+ # In the case when we have reached a statustype with isEindstatus set we assume this is our eindstatus
177
+ if (
178
+ statuses
179
+ and statuses [- 1 ].statustype
180
+ and statuses [- 1 ].statustype .is_eindstatus
181
+ ):
182
+ end_statustype = statuses [- 1 ].statustype
183
+
175
184
end_statustype_data = None
176
185
if not status_types .get (end_statustype .url ):
177
186
end_statustype_data = {
You can’t perform that action at this time.
0 commit comments