Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
883a6391
Commit
883a6391
authored
Jan 13, 2022
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! erp5_web_renderjs_ui: fix code to support cases of queries with two parameters
parent
a3fc5406
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
...PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
+13
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
...athTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.js
View file @
883a6391
...
...
@@ -27,7 +27,7 @@
});
})
.
declareMethod
(
'
getSearchCriteria
'
,
function
(
a
,
b
)
{
var
key
,
value
,
query
;
var
query
;
if
(
this
.
state
.
extended_search_mapping
.
hasOwnProperty
(
a
)
&&
this
.
state
.
extended_search_mapping
.
hasOwnProperty
(
b
))
{
query
=
new
ComplexQuery
({
...
...
@@ -49,11 +49,19 @@
]
});
}
else
if
(
this
.
state
.
extended_search_mapping
.
hasOwnProperty
(
b
))
{
key
=
this
.
state
.
extended_search_mapping
[
b
].
value
;
value
=
a
;
query
=
new
SimpleQuery
({
operator
:
""
,
key
:
this
.
state
.
extended_search_mapping
[
b
].
value
,
type
:
"
simple
"
,
value
:
a
});
}
else
{
key
=
this
.
state
.
extended_search_mapping
[
a
].
key
;
value
=
this
.
state
.
extended_search_mapping
[
a
].
value
;
query
=
new
SimpleQuery
({
operator
:
""
,
key
:
this
.
state
.
extended_search_mapping
[
a
].
key
,
type
:
"
simple
"
,
value
:
this
.
state
.
extended_search_mapping
[
a
].
value
});
}
return
Query
.
objectToSearchText
(
query
);
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_graphic_js.xml
View file @
883a6391
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.
29983.5320.38758
</string>
</value>
<value>
<string>
997.
30932.12258.23176
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -264,7 +264,7 @@
</tuple>
<state>
<tuple>
<float>
164
1980191.85
</float>
<float>
164
2037131.72
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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