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 16307c4034)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 17df2459dd)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
Marc Véron 2017-06-04 22:09:14 +02:00 committed by Katrin Fischer
parent 5d30c9517d
commit ab75a49507
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ $(document).ready(function() {
<ol>
<li>
<label class="required" for="description">Description: </label>
<input type="text" id="description" name="description" value="[% description %]" class="required" required="required" /> <span class="required">Required</span>
<input type="text" id="description" name="description" value="[% description | html %]" class="required" required="required" /> <span class="required">Required</span>
</li>
<li>
<label for="unit">Unit: </label>