specify / specify6

Source Code for Specify 6, Biological Collections Management Platform
https://specifysoftware.org
GNU General Public License v2.0
14 stars 6 forks source link

Agent: field id="3" #1227

Open mcruz-umich opened 11 months ago

mcruz-umich commented 11 months ago

https://github.com/specify/specify6/blob/945d28f00288d2d64979848fb2fb63fda34bdd1b/config/backstop/global.views.xml#L862C44-L862C45

In experimenting with modifying the Agent form, I noticed that if I change the value of id="3" to id="lastname", then I get an error when the form is rendered.

                <row>
                    <cell type="label" labelfor="3" />
                    <cell type="field" id="3" name="lastName" uitype="text" colspan="5" isrequired="true" />
                    <cell type="label" labelfor="5" />
                    <cell type="field" id="5" name="firstName" uitype="text" />
                    <cell type="label" labelfor="4" />
                    <cell type="field" id="4" name="middleInitial" uitype="text" colspan="3" />
                </row>
image

Is there some code dependence on this ID field having the value 3?

mcruz-umich commented 11 months ago

Also if you delete this entry, then the form will not open in S6:

                <row>
                    <cell type="subview" viewname="Address" id="9" name="addresses" colspan="19" />
                </row>