Problem/Motivation

Registration open/close dates are optional this could lead to the situation where registration status block can show the token when one of those fields are empty.

Steps to reproduce

  • Create an entity with the registration attached
  • Leave one/both of the dates empty
  • Use one/both of the dates as token in the Enabled status message or any other visible
  • Observe token being visible to the public like [registration_settings:close:date:format]

Proposed resolution

Tell token to remove tokens without substitutions from the output.

Remaining tasks

  • Patch - Done
  • Review
  • Commit

User interface changes

None

API changes

None

Data model changes

None

CommentFileSizeAuthor
#2 registration-3365500-2.patch562 bytesrosk0

Comments

RoSk0 created an issue. See original summary.

rosk0’s picture

Assigned: rosk0 » Unassigned
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new562 bytes
ericgsmith’s picture

Status: Needs review » Reviewed & tested by the community

RTBC - agree with suggestion + patch is good.

  • john.oltman committed f4196645 on 3.0.x authored by RoSk0
    Issue #3365500 by RoSk0: Remove tokens with no replacements from...
john.oltman’s picture

Status: Reviewed & tested by the community » Fixed
john.oltman’s picture

john.oltman’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.