Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
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
Hardik Juneja
jio-main
Commits
bba708a2
Commit
bba708a2
authored
Mar 11, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: revision storage putAttachment keep the wrong metadata
parent
ff82e666
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/jio.storage/revisionstorage.js
src/jio.storage/revisionstorage.js
+5
-1
No files found.
src/jio.storage/revisionstorage.js
View file @
bba708a2
...
@@ -577,6 +577,9 @@ jIO.addStorageType("revision", function (spec, my) {
...
@@ -577,6 +577,9 @@ jIO.addStorageType("revision", function (spec, my) {
"
_id
"
:
doc
.
_id
,
"
_id
"
:
doc
.
_id
,
"
_rev
"
:
doc
.
_revs_info
[
1
].
rev
"
_rev
"
:
doc
.
_revs_info
[
1
].
rev
};
};
if
(
!
generate_new_revision
&&
specific_parameter
.
putAttachment
)
{
prev_doc
.
_rev
=
doc
.
_revs_info
[
0
].
rev
;
}
}
}
// force revs_info status
// force revs_info status
doc
.
_revs_info
[
0
].
status
=
(
specific_parameter
.
remove
?
doc
.
_revs_info
[
0
].
status
=
(
specific_parameter
.
remove
?
...
@@ -699,7 +702,8 @@ jIO.addStorageType("revision", function (spec, my) {
...
@@ -699,7 +702,8 @@ jIO.addStorageType("revision", function (spec, my) {
// adding specific attachment
// adding specific attachment
attachment_list
=
attachment_list
||
[];
attachment_list
=
attachment_list
||
[];
for
(
i
=
0
;
i
<
attachment_list
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
attachment_list
.
length
;
i
+=
1
)
{
if
(
specific_parameter
.
add_to_attachment_list
.
_attachment
===
if
(
attachment_list
[
i
]
&&
specific_parameter
.
add_to_attachment_list
.
_attachment
===
attachment_list
[
i
].
_attachment
)
{
attachment_list
[
i
].
_attachment
)
{
attachment_found
=
true
;
attachment_found
=
true
;
attachment_list
[
i
]
=
specific_parameter
.
add_to_attachment_list
;
attachment_list
[
i
]
=
specific_parameter
.
add_to_attachment_list
;
...
...
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