Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5
Commits
057686d0
Commit
057686d0
authored
Apr 08, 2016
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Update jIO 3.10.2
Should fix jio.get/put on ERP5 non editable documents
parent
4c99fff8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
...enderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
+14
-3
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
...nderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.js
View file @
057686d0
...
...
@@ -8783,7 +8783,8 @@ return new Parser;
form_data_json
=
{},
field
,
key
,
prefix_length
;
prefix_length
,
result
;
form_data_json
.
form_id
=
{
"
key
"
:
[
form
.
form_id
.
key
],
...
...
@@ -8811,11 +8812,15 @@ return new Parser;
}
}
return
{
action_href
:
form
.
_actions
.
put
.
href
,
result
=
{
data
:
converted_json
,
form_data
:
form_data_json
};
if
(
form
.
hasOwnProperty
(
'
_actions
'
)
&&
form
.
_actions
.
hasOwnProperty
(
'
put
'
))
{
result
.
action_href
=
form
.
_actions
.
put
.
href
;
}
return
result
;
});
}
...
...
@@ -8973,6 +8978,12 @@ return new Parser;
}
}
}
if
(
!
result
.
hasOwnProperty
(
'
action_href
'
))
{
throw
new
jIO
.
util
.
jIOError
(
"
ERP5: can not modify document:
"
+
id
,
403
);
}
return
context
.
putAttachment
(
id
,
result
.
action_href
,
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_jio_js.xml
View file @
057686d0
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
49.22191.39286.53384
</string>
</value>
<value>
<string>
9
50.24601.18563.49681
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
14
56225163.58
</float>
<float>
14
60128878.65
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment