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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 7 Feb 2023 13:32:23 +0000 (10:32 -0300)
commitae4c09ed5eeab11938c500bee69f340a3724790c
tree806072a54a0a39db6409599c795825c3368575d7
parent9e3a0ab4126acf67bc3cac3e9d292f8db1697b8c
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>
tools/manage-marc-import.pl