]> 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)
committerLiz Rea <wizzyrea@gmail.com>
Mon, 8 Jun 2015 00:01:07 +0000 (12:01 +1200)
commit53318a5ea51fa24c062b82ba5caeb491dbb17e73
treed525fdf07bcd42604de80d495d224de4430ab18f
parent3dbf30c17de4f0c98f6d6e7b18c2d8c1ffed4269
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>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt
opac/opac-shareshelf.pl