Bug 9136: C4::Tags not Plack-compatible
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Fri, 23 Nov 2012 19:14:16 +0000 (14:14 -0500)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 22 Dec 2012 20:47:48 +0000 (15:47 -0500)
commit6417e44bc287c4cd15eef74d53602840ce2aaaa7
treedf4ba5332dcb664e6a22e3604d7b33cbc9908e8a
parentab732ce20eb91ba24feae7efb7f553969b7e792e
Bug 9136: C4::Tags not Plack-compatible

The three module-scoped variables $ext_dict, @fields, and $select_all
were preventing tagging code from working under Plack. I fixed this
by changing the latter two to compile-time constants, and declared the
first with "our $ext_dict;"

To test (under Plack):
1) Try to create a tag before the patch is applied. Note that you get a
   500 error in the AJAX request.
2) Apply patch.
3) Repeat step (1), noticing that this time the tag is created and there
   is no error.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
C4/Tags.pm