Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 56e814b

Browse files
Fixed getting SP name from 'UIInfo>DisplayName' (#136) on consent
1 parent 8df824f commit 56e814b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ All notable changes to this project will be documented in this file.
88
- mode: 'FULL' - Get the user from Perun and check if user has correct rights to access service
99
- mode: 'USERONLY' - Get the user from Perun only
1010

11+
#### Fixed
12+
- Fixed getting SP name from 'UIInfo>DisplayName'
13+
1114
## [v4.0.3]
1215
#### Fixed
1316
- Fixed works with internal attr name in MetadataToPerun/MetadataFromPerun

themes/perun/consent/consentform.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
$srcName = $this->t($srcName);
4747
}
4848

49-
if (array_key_exists('name', $this->data['dstMetadata'])) {
49+
if (isset($this->data['dstMetadata']['UIInfo']['DisplayName'])) {
50+
$dstName = $this->data['dstMetadata']['UIInfo']['DisplayName'];
51+
} elseif (array_key_exists('name', $this->data['dstMetadata'])) {
5052
$dstName = $this->data['dstMetadata']['name'];
5153
} elseif (array_key_exists('OrganizationDisplayName', $this->data['dstMetadata'])) {
5254
$dstName = $this->data['dstMetadata']['OrganizationDisplayName'];

0 commit comments

Comments
 (0)