Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp-module-perun
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp-module-perun
Merge requests
!304
fix: rpc method for get facilities by attr with attrs
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: rpc method for get facilities by attr with attrs
fix_rpc
into
main
Overview
1
Commits
1
Pipelines
3
Changes
1
Merged
Pavel Vyskočil
requested to merge
fix_rpc
into
main
2 years ago
Overview
1
Commits
1
Pipelines
3
Changes
1
Expand
fix RPC method getFacilitiesByAttributeWithAttributes()
👍
0
👎
0
Merge request reports
Compare
main
version 1
d7d33b13
2 years ago
main (base)
and
latest version
latest version
da749fed
1 commit,
2 years ago
version 1
d7d33b13
1 commit,
2 years ago
1 file
+
7
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
lib/AdapterRpc.php
+
7
−
3
Options
@@ -826,14 +826,18 @@ class AdapterRpc extends Adapter
public
function
getFacilitiesByAttributeWithAttributes
(
$attributeName
,
$attributeValue
,
$attrNames
)
{
$attrNamesMap
=
AttributeUtils
::
getRpcAttrNames
(
$attrNames
);
$facilitiesWithAttributes
=
$this
->
connector
->
post
(
'facilitiesManager'
,
'getFacilitiesByAttributeWithAttributes'
,
[
'attributeName'
=>
$attributeName
,
'attributeValue'
=>
$attributeValue
,
'attrNames'
=>
$attrNames
]
[
'attributeName'
=>
$attributeName
,
'attributeValue'
=>
$attributeValue
,
'attrNames'
=>
array_keys
(
$attrNamesMap
)
]
);
$attrNamesMap
=
AttributeUtils
::
getRpcAttrNames
(
$attrNames
);
foreach
(
$facilitiesWithAttributes
as
$key
=>
$facilityWithAttributes
)
{
$facilitiesWithAttributes
[
$key
][
'attributes'
]
=
$this
->
getAttributes
(
$facilityWithAttributes
[
'attributes'
],
Loading