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
d833cdac
Commit
d833cdac
authored
Apr 23, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: fix undefined sample_data reference in storage.write
parent
49724873
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
js/erp5_loader.js
js/erp5_loader.js
+4
-4
No files found.
js/erp5_loader.js
View file @
d833cdac
...
...
@@ -4091,7 +4091,7 @@
// TODO: storage.add included prefetch of field_items and validation
// TODO: storage.add deleted identifier if create_new was set
storage
.
write
=
function
(
obj
)
{
var
form
,
data
,
valid
,
prefix
,
config
,
method
,
action
,
pointer
;
var
form
,
data
,
valid
,
prefix
,
config
,
method
,
action
,
pointer
,
sample
;
form
=
obj
.
form
;
pointer
=
(
obj
.
element
||
storage
.
span
).
getAttribute
(
"
data-action
"
);
...
...
@@ -4107,9 +4107,9 @@
config
.
_force_data
=
true
;
}
if
(
obj
.
sample_
data
.
_id
||
form
.
identifier
)
{
if
(
data
.
_id
||
form
.
identifier
)
{
// PUT > set id, method and view
data
.
_id
=
obj
.
sample_
data
.
_id
||
form
.
identifier
.
value
;
data
.
_id
=
data
.
_id
||
form
.
identifier
.
value
;
method
=
"
put
"
;
config
.
_view
=
obj
.
state
.
view
;
}
...
...
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