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
2ecdea44
Commit
2ecdea44
authored
May 06, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TUTORIAL-FIX: allow force_new on queries
parent
d24cdaee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
js/erp5_loader.js
js/erp5_loader.js
+5
-3
No files found.
js/erp5_loader.js
View file @
2ecdea44
...
...
@@ -5933,7 +5933,8 @@
if
(
!
app
.
storage_dict
.
property_dict
.
skip_total_records
&&
(
pass
.
grant
||
(
pass
.
url_dict
.
mode
===
"
new
"
||
pass
.
purge
)
&&
(
pass
.
state
&&
pass
.
state
.
query
.
_id
===
undefined
)
&&
pass
.
config_dict
.
initial_query
)
pass
.
config_dict
.
initial_query
)
&&
!
pass
.
config_dict
.
property_dict
.
force_new
)
{
// reset limit from sampling [0,1] and store query
pass
.
state
.
query
.
limit
=
[];
...
...
@@ -5994,7 +5995,7 @@
}
// get items/item
if
(
pass
.
grant
&&
if
(
pass
.
grant
&&
!
pass
.
config_dict
.
property_dict
.
force_new
&&
(
pass
.
url_dict
.
mode
!==
"
new
"
||
!
pass
.
config_dict
.
initial_query
)
)
{
app
.
util
.
loader
(
""
,
"
status_dict.loading_set
"
);
...
...
@@ -6115,7 +6116,8 @@
}
// set empty "record" to allow generation of empty form
if
(
pass
.
url_dict
.
mode
===
"
new
"
)
{
if
(
pass
.
url_dict
.
mode
===
"
new
"
||
(
quirk_dict
.
allow_new
||
quirk_dict
.
force_new
))
{
pointer_results
=
{
"
data
"
:
{
"
total_rows
"
:
1
,
"
rows
"
:
[{
"
doc
"
:
{}}]}};
}
...
...
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