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

Pedro Amorim <[email protected]> changed:

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

--- Comment #9 from Pedro Amorim <[email protected]> ---
Created attachment 190020
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=190020&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

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to