fix: compare entity lookup matches exactly only for the match operator

Entity lookup of Entity Import Plus overrode query() completely. With "Ignore case" off, it compared every match exactly with the source value, also for "Contains", "Starts with" and "Ends with", so these operators never matched. When the exact comparison removed all matches, it returned FALSE instead of NULL and the row failed to import.

  • Override doGetQuery() and processResults() of migrate_plus instead of query(). The exact comparison only runs for "Match", as in migrate_plus.
  • Keep the stored default operator "IN": a single value is looked up with "=", multiple values with another operator throw a MigrateException.
  • Keep returning all matches for a single value that matches several entities.
  • Kernel tests for case-sensitive "Match" and for "Contains" with several matches; both fail without the fix.
Edited by Tobias Bähr

Merge request reports

Loading
Loading