mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Fix migrations and deploy issues + errors + linting
- scan both pending/ and applied/ dirs so remote catch-up works - fix remote 500s: run.php handles per-statement errors so VIEW rebuilds run after duplicate columns; replace mb_strimwidth with substr (no mbstring extension on server) - add missing migration: 015_license_custom.sql (column existed in schema.sql but was never migrated) - remote: fgetcsv enclosure single-char + AdminLogger permission-denied guard + deploy always migrates - fix admin-filters wrapping: restore flex-wrap, flex-basis on inputs/selects, shrink-protect buttons - fix phpstan: remove redundant ?? [] after isset guard in ThesisEditController - biome: exclude vendored min.js via includes patterns; lint whole js dir; modernise beforeunload-guard.js
This commit is contained in:
@@ -196,7 +196,7 @@ class ThesisCreateController
|
||||
]);
|
||||
|
||||
$identifier = $this->db->getThesisIdentifier($thesisId);
|
||||
error_log("ThesisCreateController: created thesis #$thesisId ($identifier) with " . count($authorEntries) . " author(s)");
|
||||
error_log("ThesisCreateController: created thesis #$thesisId ($identifier) with " . count($authorEntries) . ' author(s)');
|
||||
|
||||
$this->db->setThesisAuthors($thesisId, $authorEntries);
|
||||
$this->db->setThesisJury($thesisId, $data['juryMembers']);
|
||||
@@ -298,7 +298,7 @@ class ThesisCreateController
|
||||
$authorRaw = $this->sanitiseString($post['auteurice'] ?? '');
|
||||
$authorNames = [];
|
||||
if ($authorRaw !== '') {
|
||||
$authorNames = array_filter(array_map('trim', explode(',', $authorRaw)), fn($n) => $n !== '');
|
||||
$authorNames = array_filter(array_map('trim', explode(',', $authorRaw)), fn ($n) => $n !== '');
|
||||
$authorNames = array_values($authorNames);
|
||||
sort($authorNames, SORT_NATURAL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user