Bug 16987 - sub duplicate_framework in admin/marctagstructure.pl can't see variable $cache
Summary: sub duplicate_framework in admin/marctagstructure.pl can't see variable $cache
Status: RESOLVED DUPLICATE of bug 16955
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-27 09:34 UTC by Josef Moravec
Modified: 2016-07-30 08:55 UTC (History)
2 users (show)

See Also:
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 (1.22 KB, patch)
2016-07-27 09:45 UTC, Josef Moravec
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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 ***