Illumeo Content Studio — Course sections fix (2026-10-07) ========================================================= Copy these 5 files into the illumeo_content_studio folder on the server, replacing the existing ones (keep a backup of the originals first): coursewright.php coursewright-ui.php coursewright_save.php ai_storyboard_generate.php ai_storyboard_review_and_adjust.php No database change is needed. Nothing else changes. What was fixed -------------- 1. Section count locked at 2 (or any old number). The saved count was reloaded as if the creator had typed it, so the course stayed at that number no matter what length was chosen, and every regeneration asked for exactly that many sections. Now: a number is only treated as the creator's own choice when it was saved with the "(chosen)" marker. Every existing course goes back to automatic (worked out from the course length) until the creator types a number again. 2. Per-section minutes were wrong (e.g. "60 min" each for an 8-hour course): the duration parser only looked for the digits 1-4. Now: real parser, and the page also sends the exact minutes. 3. "Modify the sections with AI" silently dropped any section the AI added. Now new sections are inserted. 4. Review tab warns when the generated sections do not match the number the course is set to (length or count changed after generation). Verify after upload ------------------- Open: coursewright.php?topic=Ethics%20and%20Compliance%20in%20Financial%20Services&keep=1&step=2 Course sections should read 18 · "Set from your duration" (8 hours). Type a number of your own -> tag changes to "Your own number", and "Regenerate all sections" on the Review tab creates exactly that many.