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

Borrow: ViewDev: yesNo1 referenced twice #1231

Open mcruz-umich opened 9 months ago

mcruz-umich commented 9 months ago

https://github.com/specify/specify6/blob/945d28f00288d2d64979848fb2fb63fda34bdd1b/config/common/common.views.xml#L1904C1-L1908C1

When uncommenting these fields, the occurrence of yesNo1 twice in the form causes the form to render blank. Delete the second occurrence.

mcruz-umich commented 9 months ago

Also remove the hardcoded: label="yesNo1" label="yesNo2"

mcruz-umich commented 9 months ago

change id="6" on AddressOfRecord field to be id="AddressOfRecord" so it does not conflict with the viewname="BorrowAgent" id="6"

mcruz-umich commented 9 months ago

ID's for 9 and 10 for timestamps conflict with IDs used above. Consider changing IDs to have the same value as the name field for each cell.

                <row>
                    <cell type="label" labelfor="9" />
                    <cell type="field" id="9" name="createdByAgent" uitype="label" readonly="true" uifieldformatter="Agent" />
                    <cell type="label" labelfor="10" />
                    <cell type="field" id="10" name="modifiedByAgent" uitype="label" readonly="true" uifieldformatter="Agent" />
                </row>
                <row>
                    <cell type="label" labelfor="11" />
                    <cell type="field" id="11" name="timestampModified" uitype="label" readonly="true" />
                    <cell type="label" labelfor="12" />
                    <cell type="field" id="12" name="timestampCreated" uitype="label" readonly="true" />
                </row>