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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hugo Ricateau
erp5
Commits
5f8a97a8
Commit
5f8a97a8
authored
Jan 04, 2018
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Business Snapshot: Hardlinks should not be changed to sub-objects after installing snapshot
parent
dae20bb9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
product/ERP5/Document/BusinessSnapshot.py
product/ERP5/Document/BusinessSnapshot.py
+5
-2
No files found.
product/ERP5/Document/BusinessSnapshot.py
View file @
5f8a97a8
...
...
@@ -238,6 +238,9 @@ class BusinessSnapshot(Folder):
last_snapshot
,
'replace'
):
last_snapshot
.
replace
(
self
)
# Now install the items in new snapshot
# Now install the items in new snapshot, using the aq_parent of item as its
# context. This is important because if we use the snapshot as the context,
# it will change the parent of the items to snapshot, which is undesirable
# as we want them to stay as hardlinks in the snapshot
for
item
in
self
.
objectValues
():
item
.
install
(
self
)
item
.
install
(
item
.
aq_parent
)
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