]> git.koha-community.org Git - koha.git/commit
Bug 33236: Move NewSuggestion to Koha::Suggestion->store
authorNick Clemens <nick@bywatersolutions.com>
Wed, 15 Mar 2023 15:27:11 +0000 (15:27 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 9 Jun 2023 15:04:46 +0000 (12:04 -0300)
commit4880f2d91df87541c3d0bbbca94dbfdf77f8a444
treebbd38c2254beede0dd75e86515aba637dbe92f25
parent7129b772b559c50311bccfa3b9f0402ec1ce1100
Bug 33236: Move NewSuggestion to Koha::Suggestion->store

The NewSuggestion routine saved the suggestion to the DB
and returned the id

This patch moves the code to Koha::Suggestion->store and
handles emailing upon creation, this adds that functionality to
suggestions added via api

To test:
1 - Apply patch
2 - Test adding a suggestion on the opac and staff client
3 - Confirm the suggestions are added correctly

Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Suggestions.pm
Koha/Suggestion.pm
opac/opac-suggestions.pl
suggestion/suggestion.pl
t/db_dependent/Suggestions.t