Skip to content

Problem: Unable to generate finding aid when there are no dacsSpecializedNoteTypes #2302

@amtuannguyen

Description

@amtuannguyen

Current Behavior

Steps to reproduce the behavior

  1. Create an archival description with no dacsSpecializedNoteTypes
  2. Go to an archival description, click on Generate Finding Aid
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bugA flaw in the code that causes the software to produce an incorrect or unexpected result.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions