usaskulc / cat

Curriculum Alignment Tool
GNU Lesser General Public License v3.0
1 stars 2 forks source link

Add/Edit course in Programs that has a non-empty Program Outcomes results in an exception #7

Open ionparticle opened 10 years ago

ionparticle commented 10 years ago

I was able to duplicate the exception using the demo data setup by createStructureWithInitialData.sql:

  1. Goto Program Admin > Basket Weaving (Demo) > All degrees in Basket Weaving.
  2. Add or edit a course.

Screenshot of exception: http://i.imgur.com/16Mqjs2.png

The expected behaviour can be seen in the other Basket Weaving program:

  1. Goto Program Admin > Basket Weaving (Demo) > B.Sc. 4 year in Basket Weaving .
  2. Add or edit a course.

Poking at the lines causing the exception, I found that masteryOptionValues was empty when it tries to read from it. I can't find where Mastery Option Values is configured in the UI or where the code responsible for inserting it into the database is.

Resetting the database using createBlankStructure.sql, I tried to create an Organization, Program, Program Outcomes, and Course from scratch. Nowhere in the whole process does the mastery_option_values table gets a value inserted, so I'm quite confused.

Any help would be greatly appreciated, thanks!