]> 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)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Tue, 23 Mar 2021 14:20:17 +0000 (14:20 +0000)
commit8d57ef995b90a67316f6df3cf831c9160347593d
tree99e2f6d83b14fa4f34f35b6d9fb56c23e28dff34
parentab363966b39b7b5010391dd82fcccaf6017ca0a0
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>
(cherry picked from commit ea7e83b2712c48a0c9a157b2fb36eb782b26f34b)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm