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

Commit

Permalink
Merge pull request #22 from dBucik/fix_consent
Browse files Browse the repository at this point in the history
fix: 🐛 Fix consent collapse
  • Loading branch information
Dominik František Bučík authored Apr 13, 2022
2 parents 33990eb + e34cf2e commit eb65097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/ConsentHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,26 @@ public static function getJurisdiction($dstMetadata): string
return 'in ' . $countryCodes[$jurisdiction];
}

public static function printUserAttributes(array $attributes, $getTranslator)
public static function printUserAttributes(array $attributes, $translator)
{
$newAttributes = [];
foreach ($attributes as $name => $value) {
if ($name === 'mail' || $name === 'displayname' || $name === 'givenName' || $name === 'sn') {
$newAttributes[$name] = $value;
}
}
ConsentHelper::printAttributes($newAttributes, $getTranslator);
ConsentHelper::printAttributes($newAttributes, $translator);
}

public static function printTechnicalAttributes(array $attributes, $getTranslator)
public static function printTechnicalAttributes(array $attributes, $translator)
{
$newAttributes = [];
foreach ($attributes as $name => $value) {
if ($name !== 'mail' && $name !== 'displayname' && $name !== 'givenName' && $name !== 'sn') {
$newAttributes[$name] = $value;
}
}
ConsentHelper::printAttributes($newAttributes, $getTranslator);
ConsentHelper::printAttributes($newAttributes, $translator);
}

public static function printAttributes($attributes, $translator)
Expand Down
2 changes: 1 addition & 1 deletion themes/elixir/consent/consentform.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</div>
<div class="card-header" id="headingThree">
<h5 class="mb-0">
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="true" aria-controls="collapseOne">
<button class="btn btn-link" type="button" data-toggle="collapse" data-target="#collapseThree" aria-expanded="true" aria-controls="collapseThree">
Technical Information
</button>
</h5>
Expand Down

0 comments on commit eb65097

Please sign in to comment.