[Koha-bugs] [Bug 14266] Replace trim() with $.trim() in opac-shareshelf.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 26 13:09:50 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14266

--- Comment #5 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 39509
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39509&action=edit
[COUNTER-PATCH] 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

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list