Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigating records with independent resources triggers unload protect #6303

Open
lexiclevenger opened this issue Mar 6, 2025 · 1 comment
Labels
2 - Forms Issues that are related to the form system 2 - Record Sets Issues that are related to record sets

Comments

@lexiclevenger
Copy link
Collaborator

lexiclevenger commented Mar 6, 2025

Describe the bug

When navigating through a record set or fictitious record set, the Save button is enabled and unload protect is triggered for records with associated records in independent subviews.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Data Entry and create an Accession.
  2. Fill in required fields
  3. Add a Collection Object
  4. Save record
  5. Click Add to create a new record (save optional)
  6. Use the < button to navigate to the previous record
  7. See that Save is enabled

Expected behavior
Save and unload protect should not be enabled unless the record is modified.

Screenshots

In this example, I use a Collecting Event record.

Production:

Screen.Recording.2025-03-06.at.2.20.27.PM.mov

7.9.6.2 (Expected behavior):

Screen.Recording.2025-03-06.at.2.19.32.PM.mov

Crash Report

Specify 7 System Information - 2025-03-06T20_22_12.027Z.txt

Please fill out the following information manually:

@lexiclevenger lexiclevenger added 2 - Forms Issues that are related to the form system 2 - Record Sets Issues that are related to record sets labels Mar 6, 2025
@lexiclevenger lexiclevenger changed the title Unload protect triggered for shared CEs with COs when navigating records Navigating records triggers unload protect for records with independent resources Mar 6, 2025
@lexiclevenger lexiclevenger changed the title Navigating records triggers unload protect for records with independent resources Navigating records with independent resources triggers unload protect Mar 6, 2025
@emenslin
Copy link
Collaborator

emenslin commented Mar 7, 2025

Likely the same problem, sometimes when you expand an independent subview it activates the save button. Does not seem to happen with every independent subview (i.e. it didn't seem to happen on CE -> CO) but does happen with repository agreement -> accesion and accession -> repository agreement so it does not seem to matter if it is a to-one or a to-many

03-07_12.13.mp4
03-07_12.26.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - Forms Issues that are related to the form system 2 - Record Sets Issues that are related to record sets
Projects
None yet
Development

No branches or pull requests

2 participants