Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear error message after restricting categories #234

Open
felixww opened this issue Mar 8, 2023 · 0 comments
Open

Unclear error message after restricting categories #234

felixww opened this issue Mar 8, 2023 · 0 comments

Comments

@felixww
Copy link

felixww commented Mar 8, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant