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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Apr 2021 08:03:30 +0000 (10:03 +0200)
commit01f0e04172432e28f37a94bf6df51a3fd6cdc960
tree2ac3fd7ba30604b241c1b32ccf86da77f1d5b44f
parentf096a8dffcb35c153c3f4f27ce5767b1c7fb3f75
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>
C4/ImportExportFramework.pm
t/db_dependent/data/frameworks/biblio_framework.csv