rism-digital / muscat

🗂️ A Rails application for the inventory of handwritten and printed music scores
http://muscat-project.org
34 stars 16 forks source link

Reindexing issue when works are duplicated #1570

Closed lpugin closed 2 months ago

lpugin commented 2 months ago

When a work is duplicated and the catalogue (690) field is only changed in $n, searching the work is not finding it if the search is limited to that catalogue.

lpugin commented 2 months ago

This is actually not only when duplicating but also when creating a new work. So the real issue is in work creation. Saving a second time fixes it (I think)

xhero commented 2 months ago

@lpugin Can you test this in -test? Hopefully it is fixed

lpugin commented 2 months ago

Looks good! Thanks