diff src/tools/xml_tools.py @ 2386:2e05921df16a

plugin schema, core(xmlui): deep copy base form when reused to avoid accidental modification
author Goffi <goffi@goffi.org>
date Fri, 20 Oct 2017 08:39:05 +0200
parents 59636c4db2d0
children 7fff98d64ab5
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Mon Oct 16 07:48:09 2017 +0200
+++ b/src/tools/xml_tools.py	Fri Oct 20 08:39:05 2017 +0200
@@ -251,7 +251,7 @@
             base_field = base_form.fields[name]
         except KeyError:
             continue
-        field.options = base_field.options
+        field.options = base_field.options[:]
     xml_ui = XMLUI("window", "vertical", session_id=session_id)
     dataForm2Widgets(xml_ui, form, read_only=True, prepend=prepend)
     return xml_ui