Commit 2ed5e495 authored by Jérome Perrin's avatar Jérome Perrin

json_form: XXX use encoded json as string, not a javascript object

( this might also be causing problems, but it's what I used in the POC )
parent 418344ac
...@@ -790,7 +790,9 @@ ...@@ -790,7 +790,9 @@
editable: options.editable === undefined ? true : options.editable editable: options.editable === undefined ? true : options.editable
}; };
if (options.value !== undefined) { if (options.value !== undefined) {
z.value = JSON.stringify(options.value); // XXX shouldn't it already be encoded ???
// z.value = JSON.stringify(options.value);
z.value = options.value;
} }
return this.changeState(z); return this.changeState(z);
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment