Anonymous user enrollment broken manage event page

Created on 26 September 2024, 2 months ago

Problem/Motivation

The enrollment manager page are two errors with anonymous user enrollment.

  1. When an anonymous-user enroll to an event, the label username is not filled when they are selected by action select field;
  2. An guest user can have the first and last name fields empty, so when they are empty the checkbox from vbo-action is hidden;

Steps to reproduce

  • Enable Social Event Anonymous Enrollments module
  • Create an event with the ability for anonymous to enroll the event
  • As Anonymous enroll to the created event twice, one with email, first and last name and other only with email
  • Login as admin
  • Visit /node/{nid}/all-enrollments page
  1. Check the checkbox field from user with first and last name.
  2. Select the guest-user with first and last name, after it check is name on VBO Block

Proposed resolution

The label function from EventEnroll entity class doesn't be prepared for guest users, so should be add a check to return first and last name field or email field when the user enrollment is a guest.

The checkbox field isn't be shown because it don't have a label, when the guest-user have only the email, it is empty. To solution it, should be add the email data at label.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

13.0

Component

Code (back-end)

Created by

🇧🇷Brazil viniciusrp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024