Badges: Fix event copy data receiver not rewriting questions

This commit is contained in:
Raphael Michel
2021-12-13 14:09:38 +01:00
parent f69e270e4d
commit f71877b7fc

View File

@@ -102,6 +102,8 @@ def event_copy_data_receiver(sender, other, question_map, item_map, **kwargs):
newq = question_map.get(int(o['content'][9:]))
if newq:
o['content'] = 'question_{}'.format(newq.pk)
bl.layout = json.dumps(layout)
bl.save()
if bl.background and bl.background.name: