]> git.koha-community.org Git - koha.git/commit
Bug 30972: Don't replace biblio's local cover images when uploading an image's image
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 16 Jun 2022 10:29:14 +0000 (12:29 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 20 Jun 2022 13:39:34 +0000 (10:39 -0300)
commite32e7a6c9019ac93217f1b4322076e779d35dec4
tree9c5b1f403dc9155a54cec0f311caf5cbf4d4f3f1
parent54734f68f21a2d4d248e339d144b67e071317236
Bug 30972: Don't replace biblio's local cover images when uploading an image's image

When attaching a new cover image to an item we should not replace cover
images attached to the bibliographic record if "Replace existing covers"
is ticked.

Test plan:
Attach 1+ image to a bibliographic record
Attach 1 image to an item of this biblio
Attach another image to the item and seect "replace existing covers"
=> Without this patch the images attached to the biblio are removed
=> With this patch applied only the images attached to the image are
removed

Same if you tick the checkbox when attaching an image to the biblio

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
tools/upload-cover-image.pl