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
24b9e1e7
Commit
24b9e1e7
authored
Feb 21, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed naming conflict in release install by prefixing form id & name
parent
44568959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
js/erp5_loader.js
js/erp5_loader.js
+5
-16
No files found.
js/erp5_loader.js
View file @
24b9e1e7
...
...
@@ -1073,18 +1073,6 @@
storage
.
add
(
obj
);
},
/**
* add a service
* @method install
* @param {object} obj Action Object
**/
"
instantiate
"
:
function
(
obj
)
{
obj
.
gadget
.
state
.
create_new
=
true
;
obj
.
gadget
.
state
.
force_formdata
=
true
;
obj
.
gadget
.
state
.
url_pointer
=
"
request
"
;
storage
.
add
(
obj
);
},
/**
* Add a user to the storage
* @method submit
...
...
@@ -3761,7 +3749,7 @@
var
i
,
j
,
k
,
l
,
m
,
n
,
segment
,
element
,
container
,
area
,
field
,
overrides
,
position
,
doc
,
config
,
value
,
stamp
,
sauce
,
encode
,
secure
,
safety_box
,
fragment
,
wrap
,
item_id
,
input_config
,
setter
,
setter_list
,
button
;
button
,
prefixed_name
;
spec
.
set_id
=
spec
.
reference
;
fragment
=
factory
.
util
.
wrapInForm
(
spec
);
...
...
@@ -3872,9 +3860,10 @@
field
=
segment
.
fieldlist
[
j
];
// allow non-fieldlist form elements to be generated
// TODO: can we also generate a field from another portal_type here?
if
(
field
.
type
)
{
input_config
=
field
;
prefixed_name
=
spec
.
reference
+
"
_
"
+
field
.
direct
.
name
||
util
.
uuid
();
field
.
direct
.
id
=
field
.
direct
.
name
=
prefixed_name
;
setter
=
input_config
.
logic
?
(
input_config
.
logic
.
setValue
||
input_config
.
logic
.
setFlux
)
:
undefined
;
// make sure value is set correctly
...
...
@@ -7077,7 +7066,7 @@
// pass.state.selected = pass.create === false ?
// (pass.state.selected) : undefined;
//
if a callback is provided, set it
on state
//
set callback and pointer
on state
pass
.
state
.
callback
=
pass
.
config
.
property_dict
.
submit_to
;
pass
.
state
.
url_pointer
=
pass
.
config
.
property_dict
.
url_pointer
;
...
...
@@ -7779,7 +7768,7 @@
// force sync
if
(
app
.
storage_dict
.
property_dict
.
force_sync
)
{
storage
.
sync
(
mapped
,
parcel
.
storage
);
//
storage.sync(mapped, parcel.storage);
}
return
{
...
...
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