Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
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
Roque
jio
Commits
ff4846ab
Commit
ff4846ab
authored
Feb 27, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5storage] do not use the portal type translated title value
Thanks to Thomas Gambier for the fix.
parent
e723b3de
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
src/jio.storage/erp5storage.js
src/jio.storage/erp5storage.js
+2
-1
test/jio.storage/erp5storage.tests.js
test/jio.storage/erp5storage.tests.js
+6
-3
No files found.
src/jio.storage/erp5storage.js
View file @
ff4846ab
...
@@ -103,7 +103,8 @@
...
@@ -103,7 +103,8 @@
function
extractPropertyFromFormJSON
(
json
)
{
function
extractPropertyFromFormJSON
(
json
)
{
var
form
=
json
.
_embedded
.
_view
,
var
form
=
json
.
_embedded
.
_view
,
converted_json
=
{
converted_json
=
{
portal_type
:
json
.
_links
.
type
.
name
portal_type
:
new
URI
(
json
.
_links
.
type
.
href
).
segment
(
2
)
.
replace
(
"
portal_types/
"
,
""
)
},
},
form_data_json
=
{},
form_data_json
=
{},
field
,
field
,
...
...
test/jio.storage/erp5storage.tests.js
View file @
ff4846ab
...
@@ -146,7 +146,8 @@
...
@@ -146,7 +146,8 @@
"
_bar
"
:
"
john doo
"
,
"
_bar
"
:
"
john doo
"
,
"
_links
"
:
{
"
_links
"
:
{
type
:
{
type
:
{
name
:
"
Person
"
name
:
"
Translated Person
"
,
href
:
"
urn:jio:get:portal_types/Person
"
}
}
},
},
"
_embedded
"
:
{
"
_embedded
"
:
{
...
@@ -215,7 +216,8 @@
...
@@ -215,7 +216,8 @@
"
_bar
"
:
"
john doo
"
,
"
_bar
"
:
"
john doo
"
,
"
_links
"
:
{
"
_links
"
:
{
type
:
{
type
:
{
name
:
"
Person
"
name
:
"
Translated Person
"
,
href
:
"
urn:jio:get:portal_types/Person
"
}
}
},
},
"
_embedded
"
:
{
"
_embedded
"
:
{
...
@@ -275,7 +277,8 @@
...
@@ -275,7 +277,8 @@
"
_bar
"
:
"
john doo
"
,
"
_bar
"
:
"
john doo
"
,
"
_links
"
:
{
"
_links
"
:
{
type
:
{
type
:
{
name
:
"
Person
"
name
:
"
Translated Person
"
,
href
:
"
urn:jio:get:portal_types/Person
"
},
},
parent
:
{
parent
:
{
href
:
"
urn:jio:get:foo_module
"
href
:
"
urn:jio:get:foo_module
"
...
...
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