View | Details | Raw Unified | Return to bug 14844
Collapse All | Expand All

(-)a/cataloguing/additem.pl (-4 / +9 lines)
Lines 417-425 if ($prefillitem) { Link Here
417
    my $lastitemcookie = $input->cookie('LastCreatedItem');
417
    my $lastitemcookie = $input->cookie('LastCreatedItem');
418
    if ($lastitemcookie) {
418
    if ($lastitemcookie) {
419
        $lastitemcookie = uri_unescape($lastitemcookie);
419
        $lastitemcookie = uri_unescape($lastitemcookie);
420
        if ( thaw($lastitemcookie) ) {
420
        eval {
421
            $cookieitemrecord = thaw($lastitemcookie) ;
421
            if ( thaw($lastitemcookie) ) {
422
            $cookieitemrecord = removeFieldsForPrefill($cookieitemrecord);
422
                $cookieitemrecord = thaw($lastitemcookie);
423
                $cookieitemrecord = removeFieldsForPrefill($cookieitemrecord);
424
            }
425
        };
426
        if ($@) {
427
            $lastitemcookie = 'undef' unless $lastitemcookie;
428
            warn "Storable::thaw failed to thaw LastCreatedItem-cookie. Cookie value '$lastitemcookie'. Caught error follows: '$@'";
423
        }
429
        }
424
    }
430
    }
425
}
431
}
426
- 

Return to bug 14844