[Koha-bugs] [Bug 9113] batch modification removes +

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 5 15:04:12 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9113

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #19288|0                           |1
        is obsolete|                            |

--- Comment #5 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 19407
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19407&action=edit
Bug 9113 - batch modification removes +

If you're using the batch modification tool and entering a call number like "E+
123 ABC", the tool removes the + and puts a space in it's place "E  123 ABC"

This is because form is posted via Ajax by background-job-progressbar.js.
Values are URI-encoded using escape() javascript but this method does not
escape some caracters : * @ - _ + . /
And a + is considered as a space in a URI.

This patch replaces escape() by encodeURIComponent() which encodes every
character.

Test plan :
Perform an items batch modification by setting '* @ - _ + . /' in a field
(notes for example) and see that all caracters are well saved.

Signed-off-by: Chris Cormack <chris at bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list