--- a/src/pyams_form/form.py Thu Jun 14 10:35:51 2018 +0200
+++ b/src/pyams_form/form.py Fri Jun 15 18:17:32 2018 +0200
@@ -430,6 +430,9 @@
try:
form_output = form.get_ajax_output(changes)
if form_output:
+ for key, value in form_output.items():
+ if isinstance(value, (list, tuple)) and (key in output): # concatenate lists
+ form_output[key] += output[key]
output.update(form_output)
except NotImplementedError:
pass
@@ -563,6 +566,9 @@
try:
form_output = form.get_ajax_output(changes)
if form_output:
+ for key, value in form_output.items():
+ if isinstance(value, (list, tuple)) and (key in output): # concatenate lists
+ form_output[key] += output[key]
output.update(form_output)
except NotImplementedError:
pass