The "Type" field of "Event" should not contain unpublished terms

Created on 6 September 2024, 3 months ago
Updated 16 September 2024, 3 months ago

Problem/Motivation

The "Type" field of "Event" contains unpublished terms, for users with 'Administer terms' permission. It creates some issues when the "Event" is created with the unpublished term of "Event type", users without 'Administer terms' permission couldn't see it, and it didn't make sense.

Steps to reproduce

Create two terms of "Event type" taxonomy:

  1. Published - with published status
  2. Unpublished - with unpublished status

Go to the event creation page /node/add/event - you will see both of the terms in the "Type" selector.

Proposed resolution

Change a reference method of the "Type" field from "Default" to "View". Create an "Entity reference" view of "Event type" taxonomy terms with filter - "Published: true". Set this view as a reference method of the "Type" field.

πŸ’¬ Support request
Status

Closed: won't fix

Version

13.0

Component

Code (back-end)

Created by

πŸ‡ΊπŸ‡¦Ukraine r_cheh

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

Comments & Activities

Production build 0.71.5 2024