Open eprager412 opened 5 months ago
We are likely currently just passing XPath like:
/path/to/repeat[2]/node
A solution would be to pass in XPath that refers to the ordinal attribute we are looking for like:
/path/to/repeat[@enk:ordinal="2"]/node
This will be handled directly on the OC side.
Describe the bug A clear and concise description of what the bug is.
To Reproduce 1: Open attached form in mode /single/fs/ repeatgroup_query_xml.txt with 3 repeat groups.
Expected: url will direct the user to the query for item1 but it is now the 2nd repeat in the UI. Actual: url does not direct the user to the query and displays an error message "The item you are trying to access has been removed from this form. Please use the View Query Only icon instead of the View Query Within Record icon to see it."
Browser and OS (please complete the following information):
Screenshots:
![2024-01-29_14-22-17_image1](https://github.com/OpenClinica/enketo-express-oc/assets/74559963/64ab2e1d-8b0d-4dbd-b698-6b8598675611)