Skip to content

Planner: allow homework submit from open date, not lesson date - #2159

Open
fvlasie wants to merge 3 commits into
GibbonEdu:v31.0.00from
fvlasie:fix/planner-homework-submission-window
Open

fvlasie wants to merge 3 commits into
GibbonEdu:v31.0.00from
fvlasie:fix/planner-homework-submission-window

Conversation

@fvlasie

@fvlasie fvlasie commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

Description

  • Student online homework submission no longer fails when the lesson date is in the future.
  • Submissions are allowed from the submission open date (falling back to the lesson date if open date is empty). Work submitted after the due date is still accepted as Late.
  • Submission Open Date is optional and defaults to the lesson date on Add/Edit Lesson Plan, so teachers only need to set it when it should differ.

Motivation and Context
Students were posting to planner_view_full_submitProcess.php and getting a 302 with return=error7 because the process script compared the lesson date to today. Upcoming lessons could never receive homework, even when submission was open. This behaviour, while not strictly a bug, has been a cause of severe confusion for teachers who are used to giving out homework for future lessons (which, apparently, is all the rage in California right now). This PR simply allows uploads within the open window.

How Has This Been Tested?

  • Cherry-picked onto a production v31 checkout. Planner files merged cleanly.
  • Confirmed against access logs for a future-dated lesson (gibbonPlannerEntryID 3611, lesson date 2026-09-16) where earlier POSTs had been rejected with no PHP error.

Future-dated lessons blocked student uploads. Open date now defaults to the lesson date unless the teacher sets another day.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fvlasie
fvlasie marked this pull request as ready for review September 14, 2026 23:35
@fvlasie
fvlasie marked this pull request as draft September 14, 2026 23:47
fvlasie and others added 2 commits September 14, 2026 16:50
Deadlines, the home sidebar, and parent/student dashboards waited until the lesson ended, so future-dated work stayed hidden after submission opened.

Co-authored-by: Cursor <cursoragent@cursor.com>
The deadlines list used the open date, but the paginated table still required the lesson to have ended, so CH1.1 could appear above and be empty below.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fvlasie
fvlasie marked this pull request as ready for review September 15, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant