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
5b22b2c8
Commit
5b22b2c8
authored
Jan 07, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't set include_docs on gadget updates if storage.force_fields is set
parent
1fa6c450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
js/erp5_loader.js
js/erp5_loader.js
+11
-2
No files found.
js/erp5_loader.js
View file @
5b22b2c8
...
...
@@ -5429,10 +5429,19 @@
}
if
(
pass
.
create
===
false
)
{
// make sure include_docs is set, because at this point we want data!
pass
.
state
.
query
.
include_docs
=
true
;
// make sure include_docs is set, to fetch data. DON'T if force_fields
// is set, because then we fetch by columns only (not whole docs)
if
(
storage
===
undefined
||
(
storage
&&
storage
.
force_fields
===
undefined
))
{
pass
.
state
.
query
.
include_docs
=
true
;
}
pass
.
state
.
query
.
limit
=
pass
.
store_limit
;
}
else
{
// generate a new query object, if force_fields is set
// generate an array of columns to select here
if
(
pass
.
fields
&&
storage
&&
storage
.
force_fields
)
{
}
pass
.
state
.
query
=
app
.
generateQueryObject
(
pass
.
config
.
initial_query
,
pass
.
type
,
...
...
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