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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 1 Jun 2015 17:15:58 +0000 (14:15 -0300)
commitc7a8e4dd25768870de74a5a96c63a92ff1c7fcc8
tree091d2d08e7d7c917759cad7e865093bbe21ffdd2
parente1ac8b431002ad15ba8bc19a61f2daf0424552e2
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shareshelf.tt
opac/opac-shareshelf.pl