Bug 13747: Fix problems with frequency descriptions containing quotes
authorMarc Véron <veron@veron.ch>
Sun, 4 Jun 2017 20:09:14 +0000 (22:09 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 11 Jun 2017 22:54:57 +0000 (00:54 +0200)
commitab75a49507a676ce982f213dc86b035df04a1dfb
tree090931a1959219c20c69c4cfc079f7d6af43467f
parent5d30c9517d34912a1b83c02685391d417c9af019
Bug 13747: Fix problems with frequency descriptions containing quotes

If a serial frequency description contains quotes or is surrounded by
quotes, the description is empty ("TEST" > empty) or shown without the
quotes part (TEST "sth" > TEST) on editing the frequency.

To verify:
- Create a new frequency with description: "Test"
- Modify frequency
- Verify the description field is empty

To test:
- Apply patch
- Try to recreate, verify that the description field is
  correctly filled when editing
- Test also with a name like: 'A "souble quoted" name'

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 16307c40343cdb0ed4ff69c9c001fc4d9e1a459f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 17df2459ddc294eb2499fce6d9f6f32d20e6db67)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt