bcgov / MFIN-Data-Catalogue

The Finance Data Catalogue enables users to discover data holdings at the BC Ministry of Finance and offers information and functionality that benefits consumers of data for business purposes. The product is built using Drupal and adheres to the Government of BC's Core Administrative and Descriptive etadata Standard.
Other
6 stars 0 forks source link

Prevent tagging the same series multiple times to a single MR #549

Open david-fong-bc opened 1 week ago

david-fong-bc commented 1 week ago

Describe the bug

When editing a MR's "Section 1: Details", the same series can be added multiple times.

To reproduce

Steps to reproduce the behaviour:

  1. Create a MR
  2. Navigate to edit section 1
  3. Add a series
  4. Click "Add another item" and then add the same item from step 3 in the new slot

Notes

Can potentially use the "Chosen" Drupal module from ESS (might need to add it to bcbb).

Expected behaviour

david-fong-bc commented 1 week ago

Attempting to manually set (without autocomplete) a series slot to one which has already been added informs the user that it has already been added and rejects the operation.

Or maybe it would be better to just have the server automatically remove any duplicates that the user manually enters before writing to the DB?