]> git.koha-community.org Git - koha.git/commit
Bug 24567: (QA follow-up) Remove warning in regex
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Tue, 3 Nov 2020 10:27:14 +0000 (12:27 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Nov 2020 13:49:14 +0000 (14:49 +0100)
commitea7e83b2712c48a0c9a157b2fb36eb782b26f34b
tree32c7a81960f41bcb5ebea3ff284f89e66ae806e6
parent6ce56f1134d99280af30e128f57189b285966180
Bug 24567: (QA follow-up) Remove warning in regex

Without this patch we get

Use of uninitialized value $3 in concatenation (.) or string at /kohadevbox/koha/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 943.

This converts the | OR operator to two different regexes so that the
capture group variables will be defined in every case.

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm