Commit 71946a02 authored by Boris Kocherov's avatar Boris Kocherov

erp5_json_form: trivial fix

parent d4bcad35
......@@ -16,8 +16,8 @@
url = fake_prefix + decodeURIComponent(url.replace(urn_prefix, ""));
}
if (typeof base_url === "string" &&
!(url.startsWith("http://") || url.startsWith("https://") || url.startsWith("//")) &&
base_url.startsWith("urn:jio:reference?")) {
!(url.startsWith("http://") || url.startsWith("https://") || url.startsWith("//")) &&
base_url.startsWith("urn:jio:reference?")) {
if (!urn_prefix) {
urn_prefix = base_url.indexOf("?") + 1;
urn_prefix = base_url.slice(0, urn_prefix);
......@@ -654,7 +654,6 @@
// its parent call render with the same value
// (as ERP5 does in case of formulator error)
g.state.value = JSON.stringify(value);
console.log(g.state.value);
if (g.state.key) {
var form_data = {};
value = JSON.stringify(value);
......
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