-
Notifications
You must be signed in to change notification settings - Fork 151
Description
Current Behavior
Steps to reproduce the behavior
- Create an archival description with no dacsSpecializedNoteTypes
- Go to an archival description, click on Generate Finding Aid
- The generate finding aid job will fail with error
2026-02-25 06:17:55 Exception: array_search(): Argument #2 ($haystack) must be of type array, null given 2026-02-25 06:17:55 File: /usr/share/nginx/atom/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBody.xml.php 2026-02-25 06:17:55 Line: 182
Expected Behavior
The finding aid should generate successfully
Possible Solution
Adding a null check in /usr/share/nginx/atom/plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBody.xml.php and the finding aid is generated successfully
diff plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBody.xml.php plugins/sfEadPlugin/modules/sfEadPlugin/templates/indexSuccessBody.xml.php.org 182d181 < if (!$termData['dacsSpecializedNoteTypes']) continue;
Context and Notes
No response
Version used
AtoM 2.10
Operating System and version
Ubuntu 24.04
Default installation culture
en
PHP version
PHP 8.3
Contact details
No response