Bug 11742: FIX the code parameter was not take into account
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 9 Jun 2014 10:21:31 +0000 (12:21 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 23 Jun 2014 18:19:56 +0000 (15:19 -0300)
commit1ac6af8fe21c6838f1a0b5e3e8bf3efd0ee16156
treee34a700652d44564df7adfb600ea3c04f802b6ea
parent5c4fdcf78aab2d284f3b88f9926756acb6a4d48f
Bug 11742: FIX the code parameter was not take into account

In C4::Letters::GetLetters, the code filter was not used as a query
parameter.

Moreover, the JS code was buggy. We only need to check the letter code,
except if it is an edit and the letter code has not been changed.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
C4/Letters.pm
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt