]> git.koha-community.org Git - koha.git/commit
Bug 29059: Keep non-repeatable attribute from patron to preserve when merging
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Sep 2021 14:59:37 +0000 (16:59 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 8 Apr 2022 13:49:17 +0000 (15:49 +0200)
commit67fcaae5b1a66afa647c35354cf582a2d7f9b243
treef44a8d71c1d1b6471c4e26cc463c670b389ea69d
parentf507b685be89fdfaff2dc7048ab7e024f80abe64
Bug 29059: Keep non-repeatable attribute from patron to preserve when merging

See bug 21648 comment 17.

Suggestion is to keep the non-repeatable patron's attribute from the patron we selected instead of raising a blocking error.

A side-effect will be that when several patrons are merged, the
non-repeatable attribute from the first one will be kept, which can
result in unexpected result if the original patron does not have the
attribute defined.

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patron.pm
t/db_dependent/Koha/Patrons.t