]> git.koha-community.org Git - koha.git/commit
Bug 35989: (QA follow-up) Add test and limit variable scope
authorNick Clemens <nick@bywatersolutions.com>
Wed, 29 May 2024 13:54:52 +0000 (13:54 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 17 Jul 2024 13:03:40 +0000 (15:03 +0200)
commit4118a526baea2afc7083f82dcff0e4c51685bd91
tree246c225747a97544f01339078841632e06d0f25a
parent1b95828e79aa3936ec74c3df8563733db6a82499
Bug 35989: (QA follow-up) Add test and limit variable scope

Before this patch if a record had a 751 and a 781 you could have fields repeated.
This patch reduces the scope of the fields to subdivision variable as it is only used in processing 7xx
fields and should not be shared between fields.

I also add unit tests

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 95f2aecc1b57b7c4bb8326f9f2fc9366a042a9c1)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 4ca639a5f64347db02416c881d15ff0e53ee4cb7)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/AuthoritiesMarc.pm
t/db_dependent/AuthoritiesMarc.t