Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
ecommerce-ui
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
ecommerce-ui
Commits
cd773165
Commit
cd773165
authored
Jan 03, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop defaulting to _id on queries because this will force GET over ALLDOCS
parent
18831a65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
data/network_overview.json
data/network_overview.json
+2
-1
js/erp5_loader.js
js/erp5_loader.js
+4
-5
No files found.
data/network_overview.json
View file @
cd773165
...
...
@@ -25,7 +25,8 @@
"footer"
:
[]
},
"feature_dict"
:
{
"linkable"
:
true
"linkable"
:
true
,
"link_identifier"
:
"reference"
}
},
"children"
:
[{
...
...
js/erp5_loader.js
View file @
cd773165
...
...
@@ -576,8 +576,7 @@
item
=
items
[
k
].
doc
;
// TODO: not working to alternate identifier!
identifier
=
item
[
spec
.
portal_type_title
+
"
_
"
+
spec
.
property_dict
.
feature_dict
.
link_identifier
];
identifier
=
item
[
spec
.
property_dict
.
feature_dict
.
link_identifier
];
// fallback to _id if no link identifier is specified
if
(
identifier
===
undefined
)
{
...
...
@@ -5034,7 +5033,7 @@
}
else
if
(
is_value
)
{
// we need to check an existing query for the fields we are already
// searching. These fields should not be set in the search
if
(
field_
dic
t
&&
query
)
{
if
(
field_
lis
t
&&
query
)
{
wrap
=
""
;
for
(
property
in
field_list
)
{
if
(
field_list
.
hasOwnProperty
(
property
))
{
...
...
@@ -5434,7 +5433,7 @@
pass
.
state
.
query
=
app
.
generateQueryObject
(
pass
.
config
.
initial_query
,
pass
.
type
,
pass
.
config
.
property_dict
.
initial_query_url_identifier
||
'
_id
'
,
pass
.
config
.
property_dict
.
initial_query_url_identifier
,
pass
.
value
,
pass
.
fields
);
...
...
@@ -5505,7 +5504,7 @@
pass
.
state
.
query
=
app
.
generateQueryObject
(
{
"
query
"
:
pass
.
config
.
initial_query
.
query
},
pass
.
type
,
pass
.
config
.
property_dict
.
initial_query_url_identifier
||
'
_id
'
,
pass
.
config
.
property_dict
.
initial_query_url_identifier
,
pass
.
value
);
}
else
{
...
...
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