Bug 15869: (QA follow-up) Don't pass placeholder framework '_USE_ORIG'
authorNick Clemens <nick@bywatersolutions.com>
Wed, 18 Jan 2023 19:53:54 +0000 (19:53 +0000)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Wed, 8 Feb 2023 16:35:21 +0000 (16:35 +0000)
commit55a1e189bf4550a193a53c3cda0aaf2f75f5d655
treeb71fa3af146642e1f28a5c69aa0483a529c9a4f3
parent096853d56a182fe2cced5dc15533950b6ff65f3d
Bug 15869: (QA follow-up) Don't pass placeholder framework '_USE_ORIG'

This param in the dropdown is meant to signify no change, distinct from
"" when means to set to default. In rebasing this condition was lost, this patch
restores undef of the variable to avoid setting framework to an invalid value

To test:
1 - Stage a record with a match (export and import a record)
2 - Attempt to import and overlay with option 'When replacing records use this framework:' 'Keep original framework'
3 - It fails, logs note 'value too long for field frameworkcode'
4 - Apply this patch
5 - Try again, it succeeds - framework is not changed

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit ae4c09ed5eeab11938c500bee69f340a3724790c)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
tools/manage-marc-import.pl