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
alecs_myu
erp5
Commits
3f11a1f4
Commit
3f11a1f4
authored
Jul 30, 2018
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Fix² erp5 configurator query
parent
c9c876cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
21 deletions
+19
-21
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.js
...e_module/gadget_officejs_page_jio_erp5_configurator_js.js
+17
-19
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.xml
..._module/gadget_officejs_page_jio_erp5_configurator_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.js
View file @
3f11a1f4
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
attachment_synchro
=
result
[
1
]
!==
""
,
attachment_synchro
=
result
[
1
]
!==
""
,
extended_attachment_url
=
result
[
1
],
extended_attachment_url
=
result
[
1
],
portal_type
=
result
[
0
].
split
(
'
,
'
),
portal_type
=
result
[
0
].
split
(
'
,
'
),
parent_relative_url
=
result
[
3
].
split
(
'
,
'
),
query
=
''
,
query
=
''
,
i
,
i
,
// https://bugs.chromium.org/p/chromium/issues/detail?id=375297
// https://bugs.chromium.org/p/chromium/issues/detail?id=375297
...
@@ -29,29 +30,26 @@
...
@@ -29,29 +30,26 @@
(
navigator
.
userAgent
.
indexOf
(
'
Mobile
'
)
>
0
);
(
navigator
.
userAgent
.
indexOf
(
'
Mobile
'
)
>
0
);
for
(
i
=
0
;
i
<
portal_type
.
length
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
portal_type
.
length
;
i
+=
1
)
{
jio_query_list
.
push
(
new
SimpleQuery
({
jio_query_list
.
push
(
new
ComplexQuery
({
key
:
"
portal_type
"
,
operator
:
"
AND
"
,
operator
:
""
,
query_list
:
[
new
SimpleQuery
({
type
:
"
simple
"
,
key
:
"
portal_type
"
,
value
:
portal_type
[
i
]
operator
:
""
,
type
:
"
simple
"
,
value
:
portal_type
[
i
]
}),
new
SimpleQuery
({
key
:
"
parent_relative_url
"
,
operator
:
""
,
type
:
"
simple
"
,
value
:
parent_relative_url
[
i
]
})],
type
:
"
complex
"
}));
}));
}
}
query
=
Query
.
objectToSearchText
(
new
ComplexQuery
({
query
=
Query
.
objectToSearchText
(
new
ComplexQuery
({
operator
:
'
AND
'
,
operator
:
"
OR
"
,
query_list
:
[
query_list
:
jio_query_list
,
new
ComplexQuery
({
operator
:
"
OR
"
,
query_list
:
jio_query_list
,
type
:
"
complex
"
}),
new
SimpleQuery
({
key
:
"
parent_relative_url
"
,
operator
:
""
,
type
:
"
simple
"
,
value
:
result
[
3
]
})
],
type
:
"
complex
"
type
:
"
complex
"
}));
}));
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_page_jio_erp5_configurator_js.xml
View file @
3f11a1f4
...
@@ -273,7 +273,7 @@
...
@@ -273,7 +273,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
969.1
0498.32461.42154
</string>
</value>
<value>
<string>
969.1
6040.21382.36181
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -291,7 +291,7 @@
...
@@ -291,7 +291,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1532
611569.75
</float>
<float>
1532
958446.01
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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