backoffice: include all event lines in trace history (#57872)
This commit is contained in:
parent
dcfadd61d7
commit
d15cd247eb
|
@ -3187,6 +3187,7 @@ class FormBackOfficeStatusPage(FormStatusPage):
|
|||
r += htmltext('<ul class="form-inspector biglist">')
|
||||
wf_status = None
|
||||
status_admin_base_url = '#'
|
||||
last_event_line = None
|
||||
for evolution in self.filled.evolution:
|
||||
if evolution.status and evolution.status != wf_status:
|
||||
for part in evolution.parts or []:
|
||||
|
@ -3196,6 +3197,7 @@ class FormBackOfficeStatusPage(FormStatusPage):
|
|||
htmltext('<li><span class="event">%s</span></li>')
|
||||
% part.get_event_label()
|
||||
)
|
||||
last_event_line = part
|
||||
break
|
||||
try:
|
||||
status = self.filled.formdef.workflow.get_status(evolution.status)
|
||||
|
@ -3214,12 +3216,11 @@ class FormBackOfficeStatusPage(FormStatusPage):
|
|||
)
|
||||
if evolution.status:
|
||||
wf_status = evolution.status
|
||||
first_part = True
|
||||
for part in evolution.parts or []:
|
||||
if isinstance(part, ActionsTracingEvolutionPart):
|
||||
if not first_part and part.actions:
|
||||
if part.actions and part != last_event_line:
|
||||
last_event_line = part
|
||||
r += htmltext('<li><span class="event">%s</span></li>') % part.get_event_label()
|
||||
first_part = False
|
||||
for action_ts, action_key, action_id in part.actions:
|
||||
action_label = action_classes.get(action_key, action_key)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue