Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
nexedi
/
jio
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Merge Requests
17
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 28a4df18
authored
2018-07-13 13:05:43 +0300
by
Boris Kocherov
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ziptodocuments: add parent_relative_url to added documents
1 parent
54d39102
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/jio.storage/ziptodocuments.js
src/jio.storage/ziptodocuments.js
View file @
28a4df1
...
...
@@ -50,10 +50,12 @@
if
(
body
)
{
if
(
body
.
$schema
&&
body
.
$schema
!==
""
)
{
ret
.
portal_type
=
"JSON Schema"
;
ret
.
parent_relative_url
=
"schema_module"
;
ret
.
title
=
body
.
title
||
filename
;
}
else
{
// XXX need schema relation property
ret
.
portal_type
=
"JSON Document"
;
ret
.
parent_relative_url
=
"document_module"
;
}
}
else
{
ret
.
format
=
"json"
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment