Curriculum and goal fields
What PTRS accepts on each of the Programs delivery screens. PTRS runs no check in the browser before a save is sent, so the check on PTRS's own side, run after the save leaves the screen, is the only rule there is, and where there is no check at all, there is no rule at all.
Sixteen of the subset's 29 body-taking write actions have a real length check. Twelve of the thirteen that do not are in the goals, assessment and survey area; the thirteenth is reordering.
Where no check exists, the underlying storage is the only limit, so an over-length value comes back as a plain server error, not a field message, and every date parsed by hand in those actions is unguarded, so a date the screen did not produce is a plain server error too.
Curriculum
Created from the sidebar form on a program's Curriculum tab.
| Field | On screen | PTRS's rule | Limit |
|---|---|---|---|
| Name | Curriculum name | Required, max 200 | 200, matches |
| Description | Description, optional | Max 2,000 when supplied | 2,000, matches |
| Estimated hours | Est. hours | Zero or greater | Stored to two decimal places |
| Version | not shown on the form | Set by PTRS: 1 on create, plus 1 on publish | |
| Published | not shown on the form | Set by PTRS: false on create and on clone |
Every limit above matches its storage exactly.
Unit
There is no form. Pressing Add Unit sends a fixed set of values.
| Field | What the screen sends | PTRS's rule | Limit |
|---|---|---|---|
| Name | the fixed text "New Unit" | Required, max 200 | 200, matches |
| Description | not sent | Max 2,000 when supplied | 2,000, matches |
| Sort order | the current number of units | Zero or greater | |
| Estimated hours | zero | Zero or greater | |
| Learning objectives | not sent | Max 4,000 when supplied | 4,000, matches |
The action that would let a unit be renamed, described or given objectives after creation accepts all five fields and is reachable from no screen, so a unit cannot be renamed, described or given objectives once created. Every unit in every program is called New Unit.