]> git.koha-community.org Git - koha.git/commit
Bug 14266: Trim the email address in the pl script
authorJonathan Druart <jonathan.druart@koha-community.org>
Tue, 26 May 2015 11:05:51 +0000 (13:05 +0200)
committerChris Cormack <chris@bigballofwax.co.nz>
Wed, 3 Jun 2015 08:03:01 +0000 (20:03 +1200)
commitd1708202116435ccc2c7e77937f667177a015121
treebd5e8a99d077a5acbbe81176d2398371ee4ad350
parent983312a96fbd51fa30280821b31e6cc833a4de77
Bug 14266: Trim the email address in the pl script

The original concern of bug 14266 was to provide a compatibility for
<IE9.
But actually we don't need to trim the email address template side.
It will even better to trim it in the perl script, so that the email
will be trimed even if JS is disabled.

Test plan:
1/ Share a list and does not provide any email address
2/ Submit
=> The form is not submited, no alert/message is displayed (same as
before this patch).
3/ Share a list and provide an email address with spaces before and
after
4/ Submit
=> You should receive the email

Signed-off-by: Indranil Das Gupta (L2C2 Technologies) <indradg@gmail.com>
Test output compliant with expected test plan outcome.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit c7a8e4dd25768870de74a5a96c63a92ff1c7fcc8)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt
opac/opac-shareshelf.pl