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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 9 Jun 2017 14:48:18 +0000 (16:48 +0200)
commit17df2459ddc294eb2499fce6d9f6f32d20e6db67
tree7ab43f56136321ccc8f1a0d598b3847dd676fe75
parent2d1dad1a4afa1bfaa14715b7953ed8265dbdb398
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>
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt