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
8e8e305d
Commit
8e8e305d
authored
Apr 08, 2014
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app: fixed parseQuery not handling select_list
parent
92bf8ace
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
js/erp5_loader.js
js/erp5_loader.js
+5
-4
No files found.
js/erp5_loader.js
View file @
8e8e305d
...
...
@@ -1311,6 +1311,7 @@
"
data-reference
"
:
spec
.
reference
||
null
}
}));
return
pass
(
container
);
};
...
...
@@ -4207,7 +4208,7 @@
/**
* Build a query object based on passed configuration
* @method parseQuery
* @param {object}
config JSON parameters for query object
* @param {object}
query
* @param {string} type Portal Type to fetch
* @param {string} key Parameter to search single column
* @param {string} value Value to search for across one or all columns
...
...
@@ -4215,7 +4216,7 @@
* @param {array} restore Initial query identifier (key) and value
* @return {object} query object
*/
// WARNING:
complex_queries
dependency!
// WARNING:
jIO
dependency!
storage
.
parseQuery
=
function
(
query
,
type
,
key
,
value
,
field_list
,
restore
)
{
var
property
,
wrap
,
query_object
,
query_clean
,
default_query
,
obj
,
is_value
,
i
,
is_id
,
decode
;
...
...
@@ -4236,7 +4237,7 @@
// query string passed? parse it
if
(
default_query
.
query
)
{
query_clean
=
default_query
.
query
.
replace
(
/'/g
,
'
"
'
);
query_object
=
complex_queries
.
QueryFactory
.
create
(
query_clean
);
query_object
=
jIO
.
QueryFactory
.
create
(
query_clean
);
obj
.
query
=
'
(
'
;
// missing portal type?
...
...
@@ -5971,7 +5972,7 @@
if
(
pass
.
config_dict
.
initial_query
)
{
pass
.
state
.
initial_query
=
pass
.
config_dict
.
initial_query
;
pass
.
state
.
query
=
storage
.
parseQuery
(
{
"
query
"
:
pass
.
config_dict
.
initial_query
.
query
}
,
pass
.
config_dict
.
initial_query
,
pass
.
config_dict
.
portal_type_source
,
pass
.
config_dict
.
property_dict
.
initial_query_url_identifier
,
pass
.
data_dict
.
value
...
...
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