-
- Downloads
Convert event badges to use token processor
This adds the token processor class for participants and switches the one place where we currently resolve participant tokens to use it. In the process I upgrade the badge tokens with a syntax change and drop a few more that are actually a) weird / seemingly accidentally exposed and b) not really part of the participant entity ie event template title & default role id With participant tokens we have been fortunate not to let a non-standard implementation go out so it's only the event badges which are a bit obscure / less used / less likely to be blindly used. I have added token replacement but I think it will be all very edge case
Showing
- CRM/Badge/BAO/Badge.php 28 additions, 26 deletionsCRM/Badge/BAO/Badge.php
- CRM/Core/EntityTokens.php 4 additions, 0 deletionsCRM/Core/EntityTokens.php
- CRM/Core/SelectValues.php 8 additions, 10 deletionsCRM/Core/SelectValues.php
- CRM/Event/ParticipantTokens.php 36 additions, 0 deletionsCRM/Event/ParticipantTokens.php
- CRM/Upgrade/Incremental/php/FiveFortyThree.php 25 additions, 0 deletionsCRM/Upgrade/Incremental/php/FiveFortyThree.php
- Civi/Core/Container.php 4 additions, 0 deletionsCivi/Core/Container.php
- tests/phpunit/CRM/Event/Form/Task/BadgeTest.php 9 additions, 12 deletionstests/phpunit/CRM/Event/Form/Task/BadgeTest.php
- tests/phpunit/CRM/Utils/TokenConsistencyTest.php 8 additions, 10 deletionstests/phpunit/CRM/Utils/TokenConsistencyTest.php
Loading
Please register or sign in to comment