Bug 16987

Summary: sub duplicate_framework in admin/marctagstructure.pl can't see variable $cache
Product: Koha Reporter: Josef Moravec <josef.moravec>
Component: Architecture, internals, and plumbingAssignee: Galen Charlton <gmcharlt>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: black23, veron
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16955
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 16987: Sub duplicate_framework in admin/marctagstructure.pl can't see variable $cache

Description Josef Moravec 2016-07-27 09:34:09 UTC
When creating new framework and copying the base from another existing bibliographic framework, the action end with internal server error, although the new framework is filled with the fields.

The reason is the calling clear_from_cache on the end of sub duplicate_framework

I am on plack.
Comment 1 Josef Moravec 2016-07-27 09:45:34 UTC
Created attachment 53745 [details] [review]
Bug 16987: Sub duplicate_framework in admin/marctagstructure.pl can't see variable $cache

Test plan:
0) Ensure you are running on plack
1) Create new bibliographic framework
2) Go to Marc structure and select some existing framework to duplicate it to this new framework
3) You see internal server error (and there is a log in plack-error.log)
4) Go to biblioframeworks administration and MARC structure for that new framework, you see the fields are filled up
5) Apply the patch
6) Repeat 1 and 2
7) Everything should work fine this time - no error
Comment 2 Marc VĂ©ron 2016-07-30 05:25:35 UTC
Hi Josef,
Can you please have a look at Bug 16955 - Internal Server Error while populating new framework ?
Comment 3 Josef Moravec 2016-07-30 08:55:48 UTC
It's definitely duplicate, I'm closing this.

*** This bug has been marked as a duplicate of bug 16955 ***