Bug 38211: frameworkcode must be set before read
It's a stupid global variable, we MUST have this init line BEFORE we read it! Test plan: See the other bugs linked with this one, confirm the test plan for all of them still pass. Test plan for this specific bug report: 1. Cataloging - New record -> Audio Cassettes, CDs 2. Fill in the required fields and save 3. Switch to 'Normal', Edit - Edit record 4. Note that 001 and 003 are not visible, and the Settings menu has a checkmark by Audio Cassettes, CDs 5. Click the browser Back button, then Edit - Edit record 6. Note that 001 and 003 are not visible, and the Settings menu has a checkmark by Audio Cassettes, CDs Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
df93b26f17
commit
e44927842b
1 changed files with 1 additions and 1 deletions
|
@ -515,6 +515,7 @@ my $fa_branch = $input->param('branch');
|
|||
my $fa_stickyduedate = $input->param('stickyduedate');
|
||||
my $fa_duedatespec = $input->param('duedatespec');
|
||||
|
||||
$op = $input->param('op') // q{};
|
||||
$frameworkcode = &GetFrameworkCode($biblionumber)
|
||||
if ( $biblionumber and not( defined $frameworkcode) and $op ne 'cud-addbiblio' );
|
||||
|
||||
|
@ -539,7 +540,6 @@ $tagslib = &GetMarcStructure( 1, $frameworkcode );
|
|||
$usedTagsLib = &GetUsedMarcStructure($frameworkcode);
|
||||
$mandatory_z3950 = GetMandatoryFieldZ3950($frameworkcode);
|
||||
$is_a_modif = 0;
|
||||
$op = $input->param('op') // q{};
|
||||
$changed_framework = 0;
|
||||
|
||||
if ( $op eq 'cud-change-framework' ) {
|
||||
|
|
Loading…
Reference in a new issue