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
6cd7c2ab
Commit
6cd7c2ab
authored
Oct 28, 2016
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mappingstorage: fix sort_on in query
parent
9e6b12b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/jio.storage/mappingstorage.js
src/jio.storage/mappingstorage.js
+3
-2
No files found.
src/jio.storage/mappingstorage.js
View file @
6cd7c2ab
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
.
push
(
function
()
{
.
push
(
function
()
{
if
(
mapping_dict
!==
undefined
if
(
mapping_dict
!==
undefined
&&
mapping_dict
[
attachment_id
]
!==
undefined
&&
mapping_dict
[
attachment_id
]
!==
undefined
&&
mapping_dict
[
attachment_id
][
method
]
!==
undefined
&&
mapping_dict
[
attachment_id
][
method
].
uri_template
!==
undefined
)
{
&&
mapping_dict
[
attachment_id
][
method
].
uri_template
!==
undefined
)
{
return
UriTemplate
.
parse
(
return
UriTemplate
.
parse
(
mapping_dict
[
attachment_id
][
method
].
uri_template
mapping_dict
[
attachment_id
][
method
].
uri_template
...
@@ -363,9 +364,9 @@
...
@@ -363,9 +364,9 @@
}
}
if
(
this
.
_query
.
sort_on
!==
undefined
)
{
if
(
this
.
_query
.
sort_on
!==
undefined
)
{
for
(
i
=
0
;
i
<
this
.
_query
.
sort_on
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
this
.
_query
.
sort_on
.
length
;
i
+=
1
)
{
property
=
this
.
_query
.
sort_on
[
i
]
;
property
=
mapToMainProperty
(
this
,
this
.
_query
.
sort_on
[
i
],
{},
{})
;
if
(
sort_on
.
indexOf
(
property
)
<
0
)
{
if
(
sort_on
.
indexOf
(
property
)
<
0
)
{
s
ort_on
.
push
(
property
);
s
elect_list
.
push
([
property
,
option
.
sort_on
[
i
][
1
]]
);
}
}
}
}
}
}
...
...
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