mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Imported theses were invisible on the public site because: 1. is_published defaulted to 0 (schema default) — the INSERT never set it, so all imported rows stayed unpublished and were filtered out by v_theses_public (WHERE is_published = 1) and every public DB method. 2. The access column (CSV col 16 'Autorisation') was read into $access but never written to access_type_id — silently dropped. Fix: INSERT now includes is_published = 1 and access_type_id (resolved from access_types.name via ucfirst/strtolower normalisation, defaulting to 1/Libre when the CSV cell is empty or unrecognised).
9 lines
485 B
Markdown
9 lines
485 B
Markdown
# TODO
|
|
|
|
## Fixes
|
|
- [x] Fix CSV import UNIQUE constraint crash: skip rows whose identifier already exists in DB
|
|
- [x] Auto-migrate both test.db and posterg.db on `just serve` via scripts/migrate.sh
|
|
- [x] Fix wrong `require_once` depth in `public/admin/actions/page.php` (`../../` → `../../../`)
|
|
- [x] Fix same path depth bug in `formulaire.php` and `publish.php`
|
|
- [x] Fix CSV import: imported theses not visible on public site (is_published defaulted to 0, access_type_id never set)
|