3.15.3
A batch of fixes for places where deleting, restoring or linking records left WordPress and Kenii’s data tables disagreeing, and one check that could not report a closed switch. Nothing is added; each of these is something that went wrong quietly before.
- Fixed Deleting a catalog year that a curriculum proposal, a course import or an addendum still names is now refused before anything is removed, and the message says what still uses it. Before, the year left WordPress first and then failed on its stored row.
- Fixed A program can only build on a program in its own catalog year. A link across years used to be accepted and then refused by the data tables, which made the yearly catalog clone drop links.
- Fixed A requirement entry that carries a course but no course code now takes the code from that course. Before, it was dropped, and that closed credential reads from the tables for the whole site.
- Fixed Restoring a campus, a term, or any other record from the trash now clears its deleted mark in the data tables.
- Fixed The trash list now shows campuses, terms, addenda and transfer agreements, and records from every catalog year, so each can be found and restored.
- Fixed Deleting the last program that shows a typed contact now removes the hidden contact record it created.
- Fixed `wp kenii schema install` now fails when a read switch that was open closes after a code update. Before, it always reported success.