mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
fix: pass enabledAccessTypes from ThesisEditController to edit view
This commit is contained in:
4
TODO.md
4
TODO.md
@@ -9,6 +9,10 @@
|
|||||||
- [x] Update action redirects to point to new pages
|
- [x] Update action redirects to point to new pages
|
||||||
- [x] Update admin nav header (merged 3 items → 2)
|
- [x] Update admin nav header (merged 3 items → 2)
|
||||||
|
|
||||||
|
## Bug fixes
|
||||||
|
|
||||||
|
- [x] Fix `$enabledAccessTypes` undefined / `array_map()` TypeError on edit page — controller was fetching `getAccessTypes()` instead of `getEnabledFormAccessTypes()` and returning it under the wrong key
|
||||||
|
|
||||||
## CSS refactor
|
## CSS refactor
|
||||||
|
|
||||||
- [x] Move semantic HTML element baseline styles into common.css
|
- [x] Move semantic HTML element baseline styles into common.css
|
||||||
|
|||||||
@@ -95,8 +95,8 @@ class ThesisEditController
|
|||||||
$finalityTypes = $this->db->getAllFinalityTypes();
|
$finalityTypes = $this->db->getAllFinalityTypes();
|
||||||
$languages = $this->db->getAllLanguages();
|
$languages = $this->db->getAllLanguages();
|
||||||
$formatTypes = $this->db->getAllFormatTypes();
|
$formatTypes = $this->db->getAllFormatTypes();
|
||||||
$licenseTypes = $this->db->getAllLicenseTypes();
|
$licenseTypes = $this->db->getAllLicenseTypes();
|
||||||
$accessTypes = $this->db->getAccessTypes();
|
$enabledAccessTypes = $this->db->getEnabledFormAccessTypes();
|
||||||
|
|
||||||
$rawRow = $this->db->getThesisRawFields($thesisId);
|
$rawRow = $this->db->getThesisRawFields($thesisId);
|
||||||
$currentLicenseId = $rawRow['license_id'] ?? null;
|
$currentLicenseId = $rawRow['license_id'] ?? null;
|
||||||
@@ -120,7 +120,7 @@ class ThesisEditController
|
|||||||
'languages' => $languages,
|
'languages' => $languages,
|
||||||
'formatTypes' => $formatTypes,
|
'formatTypes' => $formatTypes,
|
||||||
'licenseTypes' => $licenseTypes,
|
'licenseTypes' => $licenseTypes,
|
||||||
'accessTypes' => $accessTypes,
|
'enabledAccessTypes' => $enabledAccessTypes,
|
||||||
'currentLicenseId' => $currentLicenseId,
|
'currentLicenseId' => $currentLicenseId,
|
||||||
'currentAccessTypeId' => $currentAccessTypeId,
|
'currentAccessTypeId' => $currentAccessTypeId,
|
||||||
'currentContextNote' => $currentContextNote,
|
'currentContextNote' => $currentContextNote,
|
||||||
|
|||||||
Reference in New Issue
Block a user