Bug 27837: (follow-up) Do not check subfield unless tag defined
authorNick Clemens <nick@bywatersolutions.com>
Tue, 11 May 2021 11:08:17 +0000 (11:08 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 19 May 2021 13:06:42 +0000 (15:06 +0200)
commit0e00dc78e4ed01678f037a970487fd871fa3e70f
tree561d410f597b4d9045fac31a7332e72bf5ac9731
parentf5bd16410a5c2dc597c265eec46a771cceec72bb
Bug 27837: (follow-up) Do not check subfield unless tag defined

This was causing extra warnings when the permanent_location field was
unmapped.

We only need to check if there is a field defined as you can define a mapping
without both a field and subfield, so the existence of one implies the other

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Items.pm