Skip to content

Manually creating a loan return prep caused a fetch error on Firefox #8076

@Iwantexpresso

Description

@Iwantexpresso

Describe the bug
Whenever manually creating a return loan prep on Firefox there is an error that appears being caused by the code attempting to add an integer to a string. this is caused due to one of the field values being set to a string by Firefox inside a JSON request

To Reproduce
Steps to reproduce the behavior:

  1. Create a CO with preparations, Save CO Number
    2 Create a loan for that specific CO, then import the loan preparations for that CO.
  2. Click on the Loan Return prep Subform, select quantity returned and quantity resolved to be any number less than or equal to the total quantity of loan preparations
  3. See the following error
Image

Expected behavior
This error should not occur and the manual creation of loan preps should be called

Screenshots

found the issue lying within Firefox JSON Request casting the field "quantityreturned" into a string while every other brewer handled it as an integer

Image

Crash Report

Specify 7 Crash Report - 2026-05-12T20_34_56.060Z.txt

Please fill out the following information manually:

  • OS: MacOS 26
  • Browser: Firefox
  • Specify 7 Version: main
  • Database Name: Calvertmarinemuseum, ojsmnh20250909
  • Collection name: Invertebrates, Botany
  • User Name: spadmin

Reported By
Marco Martinez

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions