https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39944

--- Comment #15 from Lisette Scheer <[email protected]> ---
Created attachment 211162
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211162&action=edit
Bug 39944: Trim form params

Test plan, ktd, before applying patch:
1) Enable ILLModule sys pref and create a new ILL request:
   <staff_url>/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard
2) Pick type 'journal article' and enter ' 123' to DOI (notice the leading
white space)
3) Enter a cardnumber and a library. Click 'Create'.
4) Run the following SQL query (koha-mysql kohadev):
   SELECT
    CONCAT('(', REPLACE(value, ' ', '&nbsp;'), ')') AS 'Value with parenthesis
concatenated'
FROM illrequestattributes
WHERE illrequest_id = 1
  AND type = 'doi';
5) Notice the value is saved with the leading whitespace. Apply patch. Repeat.
Notice it no longer saves with the leading white space.

Sponsored-by: NHS England

Signed-off-by: Richard Bridgen <[email protected]>
Signed-off-by: Lisette Scheer <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to