collectiveaccess / providence

Cataloguing and data/media management application
GNU General Public License v3.0
295 stars 167 forks source link

UI giving an error when using a type restricted related bundle #1495

Closed Monica-Wood closed 11 months ago

Monica-Wood commented 1 year ago

I am getting an error when saving a record that has a related bundle that is restricted using the display bundle for types: settings in the UI ( <placement code="bundle_code" typeRestrictions="type1, type2"> in the install profile)

Screenshot 2023-08-30 at 2 48 40 pm There are errors preventing information in specific fields from being saved:

This only occurs when you are saving a record that is NOT the type that is resticted.

EG. a vocabulary term for storage location that will only show at the container type record, will throw an error when saving a building type record, but not if you are saving the container type record.

I have confirmed this happening with the ca_storage_locations_x_vocabulary_terms relationship and ca_entities_x_entities relationship, but most likely happening for all of them.