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
25b36e07
Commit
25b36e07
authored
Jan 02, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set field definitions in pass if not pulling sample data
parent
66da9be3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
js/erp5_loader.js
js/erp5_loader.js
+10
-1
No files found.
js/erp5_loader.js
View file @
25b36e07
...
...
@@ -5456,13 +5456,13 @@
};
};
// ======================== SAMPLE DATA ==================================
/**
* Create/Update element in storage
* @method store
* @param {object} parcel object containing storage, type and pass
* @return {object} promise object/pass
*/
// TODO: storages should not call this, this should call storage!
app
.
store
=
function
(
reply
)
{
var
i
,
obj
,
key
,
promises
,
record
,
items
,
store
,
pass
,
send_status
,
method
,
validate
;
...
...
@@ -5470,6 +5470,12 @@
pass
=
reply
.
pass
;
if
(
reply
.
response
)
{
// TODO: remove once no need for sample data
if
(
pass
.
needs_fields
)
{
delete
pass
.
needs_fields
;
pass
.
fields
=
util
.
parseIfNeeded
(
reply
.
response
);
}
store
=
storage
.
items
;
items
=
util
.
parseIfNeeded
(
reply
.
response
);
...
...
@@ -5622,6 +5628,7 @@
if
(
pass
.
skip
===
undefined
)
{
if
(
reply
.
response
)
{
delete
pass
.
needs_fields
;
pass
.
fields
=
util
.
parseIfNeeded
(
reply
.
response
);
}
...
...
@@ -5664,6 +5671,8 @@
pass
.
mode
===
"
new
"
))
&&
pass
.
config
.
portal_type_fields
)
{
// TODO: keep this until sample handling is removed
pass
.
needs_fields
=
true
;
return
app
.
fetchConfiguration
({
"
storage
"
:
app
.
default_dict
.
storage_dict
.
settings
,
"
file
"
:
app
.
default_dict
.
storage_dict
.
data_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