Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs_fs2erp5_gadget
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
officejs_fs2erp5_gadget
Commits
caded8bb
Commit
caded8bb
authored
Sep 21, 2017
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix generation template_path_list
parent
ec8aa982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
jio_fs2erp5storage.js
jio_fs2erp5storage.js
+15
-6
No files found.
jio_fs2erp5storage.js
View file @
caded8bb
...
...
@@ -506,15 +506,24 @@
document_publication_wfl
.
action
=
"
publish
"
;
document_publication_wfl
.
validation_state
=
"
published
"
;
}
if
(
!
bt_links
.
hasOwnProperty
(
path
))
{
bt_links
[
path
]
=
1
;
for
(
i
in
context
.
_template_path_list
)
{
if
(
context
.
_template_path_list
.
hasOwnProperty
(
i
))
{
template_path_list
.
push
(
path
+
'
/
'
+
i
);
path
=
path
+
"
/
"
;
for
(
i
in
context
.
_template_path_list
)
{
if
(
context
.
_template_path_list
.
hasOwnProperty
(
i
)
&&
!
bt_links
.
hasOwnProperty
(
path
+
i
))
{
if
(
i
.
substring
(
i
.
length
-
1
)
===
"
*
"
)
{
if
(
xmldoc
.
id
.
startsWith
(
i
.
substring
(
0
,
i
.
length
-
1
)))
{
template_path_list
.
push
(
path
+
i
);
bt_links
[
path
+
i
]
=
1
;
}
}
else
{
if
(
i
===
xmldoc
.
id
)
{
template_path_list
.
push
(
path
+
i
);
bt_links
[
path
+
i
]
=
1
;
}
}
}
}
path
=
context
.
path_prefix_file
+
path
+
"
/
"
;
path
=
context
.
path_prefix_file
+
path
;
if
(
!
context
.
_id_dict
.
hasOwnProperty
(
path
))
{
context
.
_id_dict
[
path
]
=
{};
}
...
...
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