]> git.koha-community.org Git - koha.git/commit
Bug 15035: Anti-spam for opac-suggestions - FOLLOW-UP
authorMason James <mtj@kohaaloha.com>
Wed, 16 Sep 2015 01:56:23 +0000 (13:56 +1200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 4 Nov 2015 13:46:02 +0000 (10:46 -0300)
commit6b31947c3bb6517ecdc7d21440ba79895c270749
treed86b49df247a2fd85d770ac6cd38bc9c8d2a19ec
parentfff73a73837d577214fa3a9198fa97f8a50471f3
Bug 15035: Anti-spam for opac-suggestions - FOLLOW-UP

to test this patch...

1/ enable 'suggestion' and 'AnonSuggestions' sysprefs

2/ edit the koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt file,
    to reveal the hidden 'negcap' field

   replace line 87 opac-suggestions.tt, from...
     <li id="negcap" style="position: absolute; left: -2000px;">
   to ...
     <li id="negcap">

3/ attempt to add another suggestion, and populate the 'negcap' field
   adding the suggestion is supposed to fail, but actually succeeds!?  :/

4/ apply patch

5/ repeat step 3, suggestion attempt should fail as expected

modified:   opac-suggestions.pl

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Confirmed insertion with negcap before patch.
With negcap value suggestion fails silently
Without negcap suggestion is inserted
No errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
opac/opac-suggestions.pl