Skip to content

[Bug]: Invalid registration date ranges allowed in program creation (missing validation) #5326

@jigisha1403

Description

@jigisha1403

Description

The program creation flow (/manage/newprogram) allows submission of invalid registration date ranges without any validation. Specifically, it is possible to set a registration start date that is later than the corresponding end date. These invalid values are then persisted in the system via the Permission model.

Steps to Reproduce

  1. Navitage to /manage/newprogram
  2. Fill the form with the following values:
    teacher_reg_start: March 31, 2026
    teacher_reg_end: March 23, 2026 (earlier than start)
  3. submit the form

Expected Behavior

  1. The form should validate that start date < end date
  2. Student registration should not start before teacher registration ends (optional constraint)
  3. The system should display validation errors and prevent submission.

Actual Behavior

  1. The form accepts invalid date ranges.
  2. The system saves these values into the Permission model.

Screenshots

Image

Operating System

Windows 11

Browser

Chrome

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions