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
Going to a record set triggers a form change #3259
Comments
The url in the screenshot: https://osuorton3823-edge.test.specifysystems.org/ |
Happens in Chrome, Edge and Firefox |
You have an unsaved form behind the dialog. |
Not showing the save dialog if there actually weren't changes! I discovered
this while on production database and thought I changed the form
…On Tue, Mar 28, 2023, 20:26 Max Patiiuk ***@***.***> wrote:
Closed #3259 <#3259> as not
planned.
—
Reply to this email directly, view it on GitHub
<#3259 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOSKLYXO3CKSZJUBRL5JBP3W6OFVVANCNFSM6AAAAAAWKRRVMU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ah, that's a separate issue, not connected to record sets. Two bugs here:
|
TODO:
|
From @bronwyncombs:
Screen.Recording.2023-07-06.at.6.11.16.PM.mov |
|
@maxpatiiuk @melton-jason , |
set a breakpoint on this line:
and when it hits, go up the stack to see who triggered the field change and why there could be several different causes for this issue - would be best to fix them all |
I cannot reproduce neither on my localhost or on the test panel. I know I saw it happening on Bronwyn's computer.. |
It looks like this is not the case for me: https://herbrbge31323-v79-dev.test.specifysystems.org/specify/query/271/ Screen.Recording.2023-07-10.at.11.00.17.AM.mp4This is likely an unrelated issue that @maxpatiiuk mentioned:
This has been a problem for a long time (at least since Specify 7.7+) where something is set upon the form loading that makes Specify think some edit has been made when it really has not. |
Still works for me from query builder: Screen.Recording.2023-07-10.at.11.47.54.AM.movOnly some have this issue from stats: screen-recording-2023-07-10-at-113003-am_LLKnihLE.mp4This is a new instance on a different database with one tab open at a time |
Can we reproduce it on xml? |
The issue is that you are testing different queries and different forms. These need to be the same to confirm whether behavior is consistent between them. On the Preparation form, nothing is being set upon load, which doesn't prompt Specify to ask if you want to save. On the Determination form, the date precision (presumably) is being set upon load, which prompts Specify to ask you if you want to save before you can navigate away. This is the actual underlying issue^^^ |
Could re-create when: |
If this is not introduced in |
"3.When breakpoint hits, double check that this.specifyModel.name (or this.specifyTable.name if on xml-editor) matches the table name you expect (i.e CollectionObject rather than PickList or TreeDefItem - you might see the later as those are created and edited by front-end behind the scenes, especially on initial page load)" |
@melton-jason can this be closed? |
I am unsure whether this should be closed or not, as the underlying cause of the issue is very far-reaching and pops up often. However, this issue has become synonymous with the problem that has been fixed as of #3774, which is why I closed it.
However, exactly what caused that line to be run will probably vary for each iteration of the issue, and that may warrant opening separate issues. This problem as a whole however can probably not be considered entirely 'fixed' until we rewrite the ORM and get away from Backbone. |
Encountered this today on Screen.Recording.2023-08-30.at.2.21.46.PM.mov |
Solved by #3959 |
Screen.Recording.2023-09-13.at.2.06.51.PM.movGoing through Determination records causes this issue for me in agent merging |
Screen.Recording.2024-01-08.at.2.10.36.PM.mov |
Describe the bug
If you click on 'Record Sets', then I am shown the list of record sets for that user. Try going from one record set to another and I get the dialog message 'This form has not been saved' even if I didn't change anything. A major issue because I wanted to know if I accidentally changed anything or not. This is in production by the way.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Shouldn't trigger the form change. Or at least tell me what changed.
The text was updated successfully, but these errors were encountered: