Bug 15128: Do not display "New suggestion" if limit has just been reached
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Jul 2016 16:00:39 +0000 (17:00 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 8 Jul 2016 14:09:50 +0000 (14:09 +0000)
commit1b89150d42548304d37fdb1def5ffd727d719f69
tree83592a79e66a00ca2bfa56372a0f5facd5695b21
parent2c2efbf4a66fb3f8c0d1212d960d5d202518bc7b
Bug 15128: Do not display "New suggestion" if limit has just been reached

If limit is X and patrons has X-1 pending suggestions, when a new one is
added, the "New suggestion" should not been added.
to avoid another call to SearchSuggestions, we assume than the
suggestion has been correctly added.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
opac/opac-suggestions.pl