Skip to content

"Return Loan" is Unresponsive and Freezes System When Loan is Accessed via Preparations Form #7441

@bhumikaguptaa

Description

@bhumikaguptaa

Describe the bug

The "Return Loan" functionality on the Loan form becomes unresponsive and can cause the browser to slow down or freeze entirely. This issue occurs specifically when the Loan record is opened from the "Show Loans" button within a Collection Object's "Preparations" section.

If the same Loan record is accessed directly through a Loan Query, the "Return Loan" button and subsequent actions work correctly and without delay.

To Reproduce
Steps to reproduce the behavior:

Workflow 1: (Failing)

  • Navigate to a Collection Object record that has at least one preparation on loan.
  • Scroll down to the Preparations section.
  • Click the "Show Loans" button associated with the loaned preparation.
  • In the window that appears, click to open the full Loan record.
  • On the Loan record screen, click the "Return Loan" button.

Workflow 2: (Working)

  • Navigate to the Query builder.
  • Create and execute a query for the same Loan record from Workflow 1 (e.g., query by Loan Number).
  • Open the Loan record from the query results.
  • On the Loan record screen, click the "Return Loan" button.

Expected behavior

When the "Return Loan" button is clicked, the "Loan Preparation" return modal should appear immediately, allowing the user to process the return. This functionality should be consistent regardless of how the user navigated to the Loan record.

Please fill out the following information manually:

Reported By
University of Wyoming

Metadata

Metadata

Assignees

No one assigned

    Labels

    2 - InteractionsIssues that are related to interactions, including loans, exchanges, gifts, and more

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions