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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
f2a51e89
Commit
f2a51e89
authored
Apr 23, 2019
by
Boris Kocherov
Committed by
Romain Courteaud
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] xmla: remove badly optimization
parent
38ac3669
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
...ortal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
+14
-15
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/xmla_client.js.js
View file @
f2a51e89
...
@@ -121,6 +121,16 @@
...
@@ -121,6 +121,16 @@
return
queue
;
return
queue
;
}
}
function
row2member
(
row
)
{
return
{
uname
:
row
.
getMemberUniqueName
(),
level
:
row
.
getLevelUniqueName
(),
h
:
row
.
getHierarchyUniqueName
(),
caption
:
row
.
getMemberCaption
(),
type
:
row
.
getMemberType
()
};
}
rJS
(
window
)
rJS
(
window
)
.
ready
(
function
()
{
.
ready
(
function
()
{
var
g
=
this
;
var
g
=
this
;
...
@@ -269,13 +279,7 @@
...
@@ -269,13 +279,7 @@
if
(
level_uname
!==
r
[
"
getLevelUniqueName
"
]())
{
if
(
level_uname
!==
r
[
"
getLevelUniqueName
"
]())
{
throw
"
xmla server fail
"
;
throw
"
xmla server fail
"
;
}
}
member
=
{
member
=
row2member
(
r
);
uname
:
uname
,
level
:
level_uname
,
h
:
r
[
"
getHierarchyUniqueName
"
](),
caption
:
r
[
"
getMemberCaption
"
](),
type
:
r
[
"
getMemberType
"
]()
};
r
.
nextRow
();
r
.
nextRow
();
cache
.
members
[
uname
]
=
member
;
cache
.
members
[
uname
]
=
member
;
members
.
push
(
member
);
members
.
push
(
member
);
...
@@ -323,17 +327,12 @@
...
@@ -323,17 +327,12 @@
},
connection_name
)
},
connection_name
)
.
push
(
function
(
r
)
{
.
push
(
function
(
r
)
{
if
(
r
.
rowCount
()
===
0
)
{
if
(
r
.
rowCount
()
===
0
)
{
return
;
}
return
g
.
getMembersOnLevel
(
connection_name
,
r
[
"
getLevelUniqueName
"
]());
})
.
push
(
function
(
members
)
{
if
(
!
members
)
{
delete
cache
.
members
[
memeber_uname
];
delete
cache
.
members
[
memeber_uname
];
// cache.members[memeber_uname] = false;
return
;
return
;
}
}
return
cache
.
members
[
memeber_uname
];
var
member
=
row2member
(
r
);
cache
.
members
[
memeber_uname
]
=
member
;
return
member
;
})
})
.
push
(
undefined
,
function
(
err
)
{
.
push
(
undefined
,
function
(
err
)
{
delete
cache
.
members
[
memeber_uname
];
delete
cache
.
members
[
memeber_uname
];
...
...
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