Skip to main content
Version: 4.37.1

Mandatory flag when multiple lists are selected

Version: 4.37.1 Date: 2026-09-24

Goal: When a user selects several deposit lists that share the same attribute, the field must be mandatory if at least one selected list requires it.

Solution: Merge folder attributes by id with a logical OR on mandatory instead of letting the last selected list overwrite the flag.

Features:

  • Shared attributes show the required asterisk when any selected list marks them mandatory
  • Validation follows the merged mandatory set

Implementation Details:

  • setAttributes ORs mandatory for duplicate attribute ids

Files Modified:

  • src/components/DocumentsPanel/utils/attributeStore.ts - OR merge for duplicate attribute ids in setAttributes

Release fragment: fix-mandatory-attribute-multi-list