Bug 27968: Fix framework import if isurl has an incorrect value
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 17 Mar 2021 08:18:48 +0000 (09:18 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 29 Apr 2021 14:30:57 +0000 (16:30 +0200)
commit5b4dd72d3a1772be1a7f9b0745663a2b3c6ecdf8
treecede2e424c875f33c82582bd51af3720e174bc2a
parentc9c0f8c65dc655306af94a2dd890389180e3d5fb
Bug 27968: Fix framework import if isurl has an incorrect value

If isurl is set to undef in the DB, it will be exported as an empty
string, which is an invalid value for isurl (int)

Incorrect integer value: '' for column 'isurl'

Test plan:
Export framework structure in CSV and ODS, then reimport it and check that
all the subfields are important correctly

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 01f0e04172432e28f37a94bf6df51a3fd6cdc960)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/ImportExportFramework.pm
t/db_dependent/data/frameworks/biblio_framework.csv