Editing a form definition using the Visual Editor in 7 leads to the form being unopenable in 6 #4837
Labels
1 - Bug
Incorrect behavior of the product
2 - App Resources
Issues that are related to app resources
Milestone
Describe the bug
When creating a new form definition from a default view in 7, the form in 6 can no longer open. So far as I've tested, the issue hasn't shown up when I do manual edits to the XML.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Form should be able to open.
Screenshots
If applicable, add screenshots to help explain your problem.
This video is too big to upload directly to Github. 🥲 Here it is in Google Drive:
https://drive.google.com/file/d/1PuXlXl6e4KVY_LSCvrNg1RqJxQYDJ4KQ/view?usp=sharing
Powershell at the end of video:
Please, also fill out the following information manually:
6.8.03
production
specifya
beafts
ac
combs
Additional context
Database is a local one I made through the Specify 6 wizard, and I used the default mammals view. Specify 7 currently condenses and reformats the entire form definition upon saving a form def for a specific table, though I couldn't see anything that could break it in that case. It removed CDATA (while keeping the text inside it intact) and put everything onto single lines. However, when doing this manually for a few of the tables, the error did not occur.
In particular, running
Get-Content C:\Users\USERNAME\Specify\specify.log -Wait
in Powershell had these two lines pop up when error occurred (right after clicking Collection Object):15:28:57 ERROR forms.persist.ViewLoader:1287 - The Field Name [pcrPerson] was not in the Table [DNA Sequence] in ViewSet [Common]
15:28:57 ERROR forms.persist.ViewLoader:475 - Couldn't find the ViewDef for formtable definition name[Collectors]
However, checking both of these across the new form and the old form showed that they should have the same behavior; the default mammals.views doesn't seem to have a pcrPerson field name and same with the viewDef for Collectors.
Copying and pasting the default mammals.views into 7 fixed it, so the issue most likely lies with 7 condensing it down, but I really cannot tell what exactly it is.
Condensed mammals view def, condensed by 7:
7-mammals.zip
Specify 7 System Information - 2024-04-24T20 52 22.756Z.txt
I'm crossing my fingers that this is a weird edge case that's only with this DB, especially since others have not had trouble with opening the form. 😓
The text was updated successfully, but these errors were encountered: