openfun / richie

:pencil: An opensource CMS to build education portals
https://richie.education
MIT License
263 stars 85 forks source link

Cannot add category to course #2037

Open vichui opened 1 year ago

vichui commented 1 year ago

Bug Report

Problematic Behavior When edit a course page and add category to the course. Use the pop-up and select a category page. When press save, it show "Select a valid choice. That choice is not one of the available choices." no matter select which category in the list.

Expected behavior/code Save successfully and category add to course.

Steps to Reproduce

  1. add category in categories page.
  2. add new course in organization page.
  3. edit new course and assign category.
  4. select category and press save.

Environment

Additional context/Screenshots

Untitled

2018D commented 1 year ago

Is this happening on the demo site generated by richie or another environment ?

vichui commented 1 year ago

It happens without demo data.

2018D commented 1 year ago

Did you create the master categorie such as Subjects (use it as page id if you want the search engine to pick it up) before creating the smaller categories such as Business management ? You aren't supposed to be able to add the master categories to course pages. https://demo.richie.education/en/categories/