pulibrary / lib_jobs

Enterprise Services batch processing tasks. Rails 7 Ruby 3.1.0
4 stars 0 forks source link

submit collection fails with frozen error #624

Closed christinach closed 1 year ago

christinach commented 1 year ago

Expected behavior

Fields should be modified during the process

Actual behavior

Field fails to be modified during the process

Steps to replicate

See honeybadger issue

Impact of this bug

Cannot submit Alma ReCAP records to SCSB

Honeybadger link and code snippet, if applicable

https://app.honeybadger.io/projects/100710/faults/99542146

https://github.com/pulibrary/lib_jobs/blob/1523bbfa553587171327b96b120af60d7c285fe7/app/models/alma_submit_collection/marc_location_field_factory.rb#L30

def call_num_from852
  call_num = @original_field['h'].to_s
  call_num << " #{@original_field['i']}" if @original_field['i']
  call_num.strip
end

Implementation notes, if any