Skip to content

IA-884: flush repository after deleting blocked terms rule to prevent stale data

khadija.elbachouri a demandé de fusionner feature/IA-884 vers develop

Problem

Blocked terms and custom rules were not displaying correctly on load unless a manual default reset was triggered. The issue was caused by a stale transaction — the old rule was not fully flushed from the DB before the new one was inserted.

Fix

In createOrUpdateBlockedTermsRule, replaced forEach(repository::delete) with deleteAll() + repository.flush() to ensure the deletion is committed to the DB before saving the new rule.

Modification effectuée par khadija.elbachouri

Rapports de requête de fusion