]> git.koha-community.org Git - koha.git/commit
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)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Mon, 24 May 2021 18:32:29 +0000 (20:32 +0200)
commit5bb2b5bafce61e647bda72cf3ff1e41fb0edb218
treedea9ac806b9b097aaa395353f6969f311e24324e
parent3ebf34acb1914c951529cf6b9fea07cd0f91461e
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>
(cherry picked from commit 5b4dd72d3a1772be1a7f9b0745663a2b3c6ecdf8)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
(cherry picked from commit 08c2408a3d2df5be104304dcbd38a7af8cd63975)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
C4/ImportExportFramework.pm
t/db_dependent/data/frameworks/biblio_framework.csv