- Issue created by @marty.true
- 🇮🇳India sidharth_soman Bangalore
I have introduced an option for choosing the checkboxes output in the module's config and also a conditional for outputting the terms in checkboxes in the user form.
Please apply the patch and review.
- 🇺🇸United States marty.true
The patch applied cleanly, and the new option works a treat! Thank you for addressing this issue — this option makes the module much more feasible now.
- First commit to issue fork.
- Merge request !66Issue #3397350 by sidharth_soman, vitaliyb98: Option to show allowed terms as checkboxes → (Open) created by Unnamed author
- 🇺🇦Ukraine vitaliyb98
Improved code provided in the patch.
Fixed error with unsetting the checkbox:TypeError: Drupal\permissions_by_term\Service\AccessStorage::addTermPermissionsByUserIds(): Argument #2 ($termId) must be of type string, int given, called in /var/www/html/modules/permissions_by_term/permissions_by_term.module on line 339 in Drupal\permissions_by_term\Service\AccessStorage->addTermPermissionsByUserIds() (line 274 of /var/www/html/modules/permissions_by_term/src/Service/AccessStorage.php).
Added functional tests for this functionality.