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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
e9da873e
Commit
e9da873e
authored
Mar 05, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] disable using cache for discoverMDMembers
parent
be520f99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
35 deletions
+33
-35
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
.../sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
+33
-35
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/sdkjs/cell/model/FormulaObjects/cubeFunctions.xmla.js.js
View file @
e9da873e
...
@@ -430,46 +430,44 @@ function (window, RSVP, Xmla, console) {
...
@@ -430,46 +430,44 @@ function (window, RSVP, Xmla, console) {
}
}
if
(
opt
.
member_uname
)
{
if
(
opt
.
member_uname
)
{
prop
.
restrictions
[
"
MEMBER_UNIQUE_NAME
"
]
=
opt
.
member_uname
;
prop
.
restrictions
[
"
MEMBER_UNIQUE_NAME
"
]
=
opt
.
member_uname
;
cached_member
=
scheme
.
members
[
opt
.
member_uname
];
}
}
if
(
opt
.
level_uname
)
{
if
(
opt
.
level_uname
)
{
prop
.
restrictions
[
"
LEVEL_UNIQUE_NAME
"
]
=
opt
.
level_uname
;
prop
.
restrictions
[
"
LEVEL_UNIQUE_NAME
"
]
=
opt
.
level_uname
;
}
}
if
(
cached_member
)
{
if
(
opt
.
tree_op
)
{
return
[
cached_member
];
prop
.
restrictions
[
"
TREE_OP
"
]
=
opt
.
tree_op
;
}
else
{
return
xmla_request_retry
(
"
discoverMDMembers
"
,
settings
)
.
push
(
function
(
r
)
{
var
ret
=
[],
uname
,
level
,
cached_member1
;
while
(
r
.
hasMoreRows
())
{
uname
=
r
[
"
getMemberUniqueName
"
]();
level
=
r
[
"
getLevelUniqueName
"
]();
// we can check cache twice because fist check
// only if discover by member_uname
if
(
!
scheme
.
members
.
hasOwnProperty
(
uname
))
{
cached_member1
=
{
uname
:
uname
,
h
:
r
[
"
getHierarchyUniqueName
"
](),
level
:
r
[
"
getLevelUniqueName
"
](),
caption
:
r
[
"
getMemberCaption
"
](),
type
:
r
[
"
getMemberType
"
]()
};
scheme
.
members
[
uname
]
=
cached_member1
;
}
else
{
cached_member1
=
scheme
.
members
[
uname
];
}
ret
.
push
(
cached_member1
);
r
.
nextRow
();
if
(
!
scheme
.
levels
.
hasOwnProperty
(
level
))
{
scheme
.
levels
[
level
]
=
discover_level
(
connection
,
scheme
,
level
);
}
}
return
ret
;
});
}
}
return
xmla_request_retry
(
"
discoverMDMembers
"
,
settings
)
.
push
(
function
(
r
)
{
var
ret
=
[],
uname
,
level
,
cached_member
;
while
(
r
.
hasMoreRows
())
{
uname
=
r
[
"
getMemberUniqueName
"
]();
level
=
r
[
"
getLevelUniqueName
"
]();
// we can check cache twice because fist check
// only if discover by member_uname
if
(
!
scheme
.
members
.
hasOwnProperty
(
uname
))
{
cached_member
=
{
uname
:
uname
,
h
:
r
[
"
getHierarchyUniqueName
"
](),
level
:
r
[
"
getLevelUniqueName
"
](),
caption
:
r
[
"
getMemberCaption
"
](),
type
:
r
[
"
getMemberType
"
]()
};
scheme
.
members
[
uname
]
=
cached_member
;
}
else
{
cached_member
=
scheme
.
members
[
uname
];
}
ret
.
push
(
cached_member
);
r
.
nextRow
();
if
(
!
scheme
.
levels
.
hasOwnProperty
(
level
))
{
scheme
.
levels
[
level
]
=
discover_level
(
connection
,
scheme
,
level
);
}
}
return
ret
;
});
});
});
}
}
...
...
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