Closed themak1985 closed 2 years ago
This looks clean and elegant - nice work. Here's some code that would allow you to convert the role_id to the label:
$roles = CRM_Core_PseudoConstant::get('CRM_Event_DAO_Participant', 'role_id');
$this->assign('role', $roles[$dao->role_id]);
Then you could use the template variable "role" instead of "role_id" to get the label.
Thank you so much, that worked.
Thanks for the improvement!
Not sure if this is worthy of merge, but thought I would give it a try - I get the option value to display, but not the label.
I tested this on our live site and it worked.
I am not really a developer, just a tinkerer, thanks for all your help. I should also note I tried using
participant_role
instead but that did not work.