Skip to content

Unclear error message after restricting categories  #234

@felixww

Description

@felixww

On a previously working installation, but after upgrading to Contao 4.13.x, I noticed the following situation (steps to reproduce):

  • Create a hierarchy of categories, say,
+-+-fruit
| +-apples
| +-pears
+-+- vegetable
| +-melons
| +-pumpkins

  • Assign a superordinate category to a news article ('vegetable')
  • Editing the the news archive, restrict available categories (that's ctrl_limitCategories in the backend html) to only subordinate categories ('melons' and 'pumpkins')
  • After that, individual news articles of this archive can not be saved anymore, producing the error
    "Categories: Your selection contains invalid page IDs!" (didn't look up the english message, I am reading here "Ihre Auswahl enthält ungültige Seiten-IDs!")

I would like to suggest a more telling error message, for example, "One or more of the selected categories are not available for this news archive"

Would anybody like to support a feature request? Wouldn't it be cool to be able to assign some categories -- not necessarily superordinates -- to a news archive as a whole, while not allowing editors to unset these categories for individual news articles?

Versions used in testing: Contao 4.13.16, contao-news_categories 3.4.23

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions