We're updating the issue view to help you get more done. 

Mass import: Undefined method `external_authors' for Hash when sending claim emails

Description

When performing a semi-automated import, claim notifications are sent to authors whose emails are valid. To minimise confusion, this is only done when importing to Beta, and at some point, this functionality was broken due to a hash key being treated like a method.

Steps to reproduce

  • Import a work through the API with send_emails: true

  • The import succeeds (the work is imported) but returns the error message:

1 An error occurred in the Archive code: undefined method `external_authors' for #<Hash:0x0056058b0a5960>

Environment

None

Status

Assignee

Ariana

Reporter

Ariana

Roadmap

Work Importing

Priority

Medium

Affects versions

0.9.247

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

Archivist

Milestone

Internal 0.9