Skip to content

Compatibility with ArchivesSpace v4.2.0-RC1 #6

@thimios

Description

@thimios

Testing with ArchivesSpace v4.2.0-RC1 gives out the following error when viewing an Accession with some payment information on staff UI:

I, [2026-04-01T12:21:35.646519 #89]  INFO -- : Completed 500 Internal Server Error in 193ms (Allocations: 0)

F, [2026-04-01T12:21:35.649488 #89] FATAL -- :   

ActionView::Template::Error (wrong number of arguments (given 2, expected 0..1)):

     9:       <%= readonly_context(:payment_summary, payment_summary) do |readonly| %>

    10:         <%= readonly.label_with_field('total_price', readonly.textfield('total_price', CurrencyFormatter.number_to_currency(payment_summary['total_price']), {})) %>

    11: 

    12:         <%= readonly.label_with_field "currency", (payment_summary['currency'] && I18n.t('enumerations.currency_iso_4217.' + payment_summary['currency'], payment_summary['currency'])) %>

    13: 

    14:         <%= readonly.label_with_field "spend_category", (payment_summary['spend_category'] && I18n.t('enumerations.payments_module_spend_category.' + payment_summary['spend_category'], payment_summary['spend_category'])) %>

    15: 

  

app/helpers/aspace_form_helper.rb:1268:in `readonly_context'

app/helpers/application_helper.rb:316:in `render_aspace_partial'

app/helpers/plugin_helper.rb:31:in `block in show_plugins_for'

app/helpers/plugin_helper.rb:28:in `show_plugins_for'

app/views/accessions/show.html.erb:133

app/helpers/aspace_form_helper.rb:1268:in `readonly_context'

app/views/accessions/show.html.erb:12

app/controllers/application_controller.rb:749:in `set_locale'

D, [2026-04-01T12:21:44.229669 #89] DEBUG -- : Thread-6628: HEAD / [session: nil]

D, [2026-04-01T12:21:44.232381 #89] DEBUG -- : Thread-6628: Responded with [200, {"Cache-Control"=>"private, must-revalidate, max-age=0", "Content-Type"=>"text/html;charset=utf-8", "Content-Length"=>"291"}, ["{\n  \"databaseProductName\": \"MySQL\",\n  \"databaseProductVersion\": \"8.4.8\",\n  \"ruby_version\": \"3.1.0\",\n  \"host_os\": \"linux\",\n  \"host_cpu\": \"x86_64\",\n  \"build\": \"java1.8\",\n  \"java.runtime.name\": \"OpenJDK Runtime Environment\",\n  \"java.version\": \"17.0.18\",\n  \"archivesSpaceVersion\": \"v4.2.0-RC1\"\n}"]]... in 2ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions