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
bbfcacd7
Commit
bbfcacd7
authored
Apr 25, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: correctly pass reference on empty forms (no jio result) to children
parent
2428aa3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
js/erp5_loader.js
js/erp5_loader.js
+17
-2
No files found.
js/erp5_loader.js
View file @
bbfcacd7
...
...
@@ -6321,7 +6321,8 @@
search
,
search_id
,
kid
,
is_html
,
is_dynamic
,
is_id
,
i
,
j
,
k
,
last
,
encoded
,
wrapper
,
active
,
selector
,
update_target
,
target
,
widget
,
quirk_dict
,
generator
,
pointer_results
,
data_total_rows
,
is_parameter
,
param_len
,
parameter
,
no_item
,
dyno
,
container
,
has_props
,
widget_dyno
;
param_len
,
parameter
,
no_item
,
dyno
,
container
,
has_props
,
widget_dyno
,
set_reference
;
pass
=
reply
.
pass
;
pass
.
config_dict
=
pass
.
config_dict
||
{};
...
...
@@ -6443,7 +6444,21 @@
// no items, need no show! (default to empty {} if none provided
if
(
pointer_results
.
data
.
total_rows
===
0
)
{
if
(
quirk_dict
.
allow_new
||
quirk_dict
.
force_new
)
{
pointer_results
=
{
"
data
"
:
{
"
total_rows
"
:
1
,
"
rows
"
:
[{
"
doc
"
:
{}}]}};
// NOTE: on updates with force_new, reference must be passed to not
// have undefined form-id values
if
(
quirk_dict
.
update
)
{
set_reference
=
{
"
doc
"
:
{},
"
reference
"
:
pass
.
url_dict
.
reference
};
}
pointer_results
=
{
"
data
"
:
{
"
total_rows
"
:
1
,
"
rows
"
:
[
set_reference
||
{
"
doc
"
:
{}}]
}
};
}
else
{
quirk_dict
.
no_show
=
quirk_dict
.
no_items
||
{};
}
...
...
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