Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
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
Boris Kocherov
jio
Commits
28a4df18
Commit
28a4df18
authored
Jul 13, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ziptodocuments: add parent_relative_url to added documents
parent
54d39102
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/jio.storage/ziptodocuments.js
src/jio.storage/ziptodocuments.js
+2
-0
No files found.
src/jio.storage/ziptodocuments.js
View file @
28a4df18
...
@@ -50,10 +50,12 @@
...
@@ -50,10 +50,12 @@
if
(
body
)
{
if
(
body
)
{
if
(
body
.
$schema
&&
body
.
$schema
!==
""
)
{
if
(
body
.
$schema
&&
body
.
$schema
!==
""
)
{
ret
.
portal_type
=
"
JSON Schema
"
;
ret
.
portal_type
=
"
JSON Schema
"
;
ret
.
parent_relative_url
=
"
schema_module
"
;
ret
.
title
=
body
.
title
||
filename
;
ret
.
title
=
body
.
title
||
filename
;
}
else
{
}
else
{
// XXX need schema relation property
// XXX need schema relation property
ret
.
portal_type
=
"
JSON Document
"
;
ret
.
portal_type
=
"
JSON Document
"
;
ret
.
parent_relative_url
=
"
document_module
"
;
}
}
}
else
{
}
else
{
ret
.
format
=
"
json
"
;
ret
.
format
=
"
json
"
;
...
...
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