Skip to content

Commit

Permalink
Merge pull request #45 from jmauzyk/craft-3
Browse files Browse the repository at this point in the history
Fix ErrorException from undefined variable uid
  • Loading branch information
engram-design authored Jul 29, 2020
2 parents fb45693 + b50ceef commit a255208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GiftVoucher.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ private function _registerPermissions()

$voucherTypePermissions = [];

foreach ($voucherTypes as $id => $voucherType) {
$suffix = ':' . $uid;
foreach ($voucherTypes as $voucherType) {
$suffix = ':' . $voucherType->uid;
$voucherTypePermissions['giftVoucher-manageVoucherType' . $suffix] = ['label' => Craft::t('gift-voucher', 'Manage “{type}” vouchers', ['type' => $voucherType->name])];
}

Expand Down

0 comments on commit a255208

Please sign in to comment.