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

Commit 3a8136a

Browse files
committed
Fixed getting SP name from 'UIInfo>DisplayName' (#136) on consent
1 parent 414fc46 commit 3a8136a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
#### Fixed
7+
- Fixed getting SP name from 'UIInfo>DisplayName'
8+
69
## [v4.0.3]
710
#### Fixed
811
- 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)