Koha-clms/Koha/REST
Tomas Cohen Arazi d6a4637ff6
Bug 38927: Only call FindDuplicate if required
This patch makes the code call `FindDuplicate` only if
`x-confirm-not-duplicate` is not passed. This makes sense, as having it
passed makes it override any duplicate found.

This patch doesn't change any end user behavior, just makes the code
more efficient.

To test:
1. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/biblios.t
=> SUCCESS: Tests pass
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass, no behavior change
4. Sign off :-D

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2025-01-24 12:02:15 +01:00
..
Plugin Bug 37902: (QA follow-up) Tidy Query.pm & Object.t 2024-10-18 14:26:00 +02:00
V1 Bug 38927: Only call FindDuplicate if required 2025-01-24 12:02:15 +01:00
V1.pm Bug 36546: (follow-up) Add fallback to unbundled spec 2024-05-02 15:03:34 +02:00