Custom multi profile: file fields only show one delete attachment action
For a profile with multi record custom set including multiple file fields, display delete attachment option only for one file.
Steps to reproduce:
- create a custom data set for contacts or indivs. mark it as a multi-record set.
- add two file type fields
- create a profile and add those fields to it. mark them as included in the multi-record listing (or pick a different field; you need at least one marked like this for the listing to work)
- open the profile in edit view. add a record and upload a file to each field. save it.
- that returns you to the listing of multi-records. edit the existing record. the two files will be listed but only one has a "delete attached file" link. if you click it, it removes the attachment for the last file field.
Note: if your custom data set is a single record set, the profile edit form will have the link for each file.