Koha-clms/Koha
Marcel de Rooy 94fd62dac9 Bug 11943: Prevent double accepts in Koha::Virtualshelfshare
This 'bug' existed long enough now to finally remove it ;)

We do so by deleting the invitation if the borrower already has a share
on this list. Actually not that hard.

We still need: a unit test and a db revision.

Test plan:
[1] Share a list. Let user B accept.
[2] Without this patch: Share again and let B accept again.
[3] Verify that you have two shares for this list in virtualshelfshares.
[4] With this patch: Share another list, let B accept.
[5] Share this other list again, let B accept again.
[6] Verify that virtualshelfshares does not contain double entries now.
    (Note: This pertains to the second list only.)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-05-11 10:52:43 -03:00
..
Account Bug 2696: (QA follow-up) Fix POD, results sorting, permissions 2018-04-24 14:01:47 -03:00
Acquisition Bug 20199: Send a DateTime to DBIC instead of an iso formatted date 2018-02-26 13:24:44 -03:00
ArticleRequest
…
Authority Bug 14769: (QA follow-up) Remove global var $cached_indicators 2018-04-12 10:50:36 -03:00
Biblio
…
BiblioUtils
…
Cache
…
Club
…
Config
…
Edifact
…
Exceptions Bug 20590: Include Koha::Exceptions::Exception 2018-04-19 12:46:04 -03:00
Exporter Bug 18201: Export data -Fix "Remove non-local items" option and add "Removes non-local records" option for existing functionality 2017-12-21 13:10:03 -03:00
ExternalContent
…
Filter/MARC
…
Illrequest Bug 7317: Remove traces of UnmediatedILL 2017-11-09 11:42:16 -03:00
Indexer
…
Item
…
Library Bug 20157: Use group 'features' to decide which groups to use for group searching functionality 2018-02-12 15:41:58 -03:00
List Bug 19528: Fix a few typos like corrosponding 2017-10-27 14:09:04 -03:00
MetadataRecord
…
Middleware Bug 18674: Allow TZ SetEnv for plack 2018-04-11 16:44:14 -03:00
Misc
…
Notice
…
Number Bug 20625: Handle non existing of active currency 2018-04-24 11:29:46 -03:00
OAI/Server Bug 20665: Reset MySQL connection time zone in the OAI-PMH Provider 2018-05-03 12:46:55 -03:00
Object/Limit
…
Old
…
Patron Bug 19935: Use ->checkouts when ->pending_checkouts->count was used 2018-04-03 11:43:39 -03:00
Patrons Bug 19936: Replace Check_userid - Update the occurrences 2018-04-12 09:36:41 -03:00
Plugins Bug 19223: Add methods to correctly handle plugin-generated output 2018-04-04 15:40:07 -03:00
QueryParser/Driver
…
REST Bug 20624: Net::OAuth2::AuthorizationServer is not a hard dependency 2018-05-09 12:56:03 -03:00
RecordProcessor
…
SMS
…
Schema/Result Bug 20073: Update DBIC Schema changes 2018-05-09 12:56:03 -03:00
SearchEngine Bug 20073: Remove perlcritic error 2018-04-23 15:12:48 -03:00
Serial
…
Sitemapper
…
Subscription Bug 20400: (follow-up) Several fixes from RM review 2018-04-20 17:59:06 -03:00
SuggestionEngine
…
Template/Plugin Bug 20538: ->tag is private - tell it explicitly 2018-04-13 12:57:32 -03:00
Util
…
Account.pm Bug 18786: Add ability to create custom payment types 2018-04-19 12:32:21 -03:00
AdditionalField.pm
…
ApiKey.pm Bug 20568: (QA follow-up) Remove unused vars 2018-05-09 12:56:00 -03:00
ApiKeys.pm Bug 20568: Add mandatory description field for api keys 2018-05-09 12:55:58 -03:00
ArticleRequest.pm Bug 18477: Populate article_requests table values for AR_PENDING notices 2018-01-23 16:03:13 -03:00
ArticleRequests.pm Bug 18403: Deal with the DB user 2018-02-12 15:41:42 -03:00
AudioAlert.pm
…
AudioAlerts.pm
…
AuthUtils.pm
…
AuthorisedValue.pm
…
AuthorisedValueCategories.pm
…
AuthorisedValueCategory.pm
…
AuthorisedValues.pm
…
Authorities.pm
…
Authority.pm Bug 14769: (Follow-up) Reduce number of preference parses 2018-04-12 10:50:35 -03:00
Biblio.pm Bug 20176: [sql_modes] Set biblio.datecreated to NOW if not defined 2018-02-16 13:03:58 -03:00
BiblioFramework.pm
…
BiblioFrameworks.pm
…
BiblioUtils.pm
…
Biblioitem.pm
…
Biblioitems.pm
…
Biblios.pm
…
Cache.pm Bug 17833: Make sure this warning will not be ignored 2018-01-09 17:23:49 -03:00
Caches.pm
…
Calendar.pm Bug 19204: Make the debarment date calculation depends on finesCalendar 2018-04-25 10:52:20 -03:00
Checkout.pm
…
Checkouts.pm
…
Cities.pm
…
City.pm
…
ClassSortRule.pm Bug 19929: Add Koha objects for class sources and sorters 2018-03-23 11:45:38 -03:00
ClassSortRules.pm Bug 19929: (QA follow-up) Fix POD 2018-03-23 11:45:38 -03:00
ClassSource.pm Bug 19929: (QA follow-up) Fix POD 2018-03-23 11:45:38 -03:00
ClassSources.pm Bug 19929: (QA follow-up) Fix POD 2018-03-23 11:45:38 -03:00
Club.pm
…
Clubs.pm
…
Config.pm Bug 19760: Die if koha-conf is not accessible 2017-12-22 13:15:35 -03:00
CsvProfile.pm
…
CsvProfiles.pm
…
Database.pm Bug 20123: (QA follow-up) If tz is 'local', no need to tell database to set the timezone 2018-04-11 15:05:01 -03:00
DateUtils.pm Bug 18330: Add RFC3339 to Koha::DateUtils 2017-12-14 16:58:22 -03:00
EDI.pm Bug 20446: Fix Edifact quotes processing 2018-04-06 13:31:45 -03:00
Edifact.pm
…
Email.pm
…
Exceptions.pm Bug 20590: Improve Koha::Exceptions in string context 2018-04-19 12:46:04 -03:00
ExternalContent.pm
…
FieldMapping.pm
…
FieldMappings.pm
…
FrameworkPlugin.pm
…
Hold.pm Bug 18382: (QA follow-up) Make new unit test pass 2018-04-02 18:07:57 -03:00
Holds.pm Bug 16187: Add a script to cancel unfilled holds after a specified number of days 2017-10-20 16:51:20 -03:00
I18N.pm
…
Illrequest.pm Bug 20001: Fix confusion between array and arrayref 2018-01-19 15:12:53 -03:00
Illrequestattribute.pm Bug 7317: Handle backend absense more gracefuly 2017-11-09 11:42:14 -03:00
Illrequestattributes.pm Bug 7317: QA followup 2017-11-09 11:42:14 -03:00
Illrequests.pm Bug 7317: QA followup 2017-11-09 11:42:14 -03:00
IssuingRule.pm
…
IssuingRules.pm Bug 19301: (QA follow-up) Add POD, use statements and correct typo 2018-02-13 13:36:00 -03:00
Item.pm
…
ItemType.pm
…
ItemTypes.pm
…
Items.pm
…
Libraries.pm Bug 18403: Deal with the DB user 2018-02-12 15:41:42 -03:00
Library.pm Bug 18403: Add new method Koha::Library->library_group 2018-02-12 15:41:36 -03:00
Linktracker.pm
…
Localization.pm
…
Localizations.pm
…
Logger.pm
…
MarcSubfieldStructure.pm
…
MarcSubfieldStructures.pm
…
MetaSearcher.pm
…
MetadataIterator.pm
…
MetadataRecord.pm Bug 19096: Make Default authoritative in core modules 2017-12-07 14:44:15 -03:00
MoreUtils.pm Bug 19069: (follow-up) Remove perlcritic error 2017-10-27 14:58:16 -03:00
News.pm
…
NewsItem.pm
…
NorwegianPatronDB.pm
…
OAuth.pm Bug 20612: (QA follow-up) Fix typo in method POD 2018-05-09 12:56:01 -03:00
OAuthAccessToken.pm Bug 20402: Add missing POD 2018-05-08 15:55:43 -03:00
OAuthAccessTokens.pm Bug 20402: Add missing POD 2018-05-08 15:55:43 -03:00
Object.pm Bug 18725: (QA follow-up) Use make_column_dirty instead of status change 2018-04-16 13:07:22 -03:00
Objects.pm Bug 19410: (follow-up) Move build_query_params_from_api into a helper 2017-12-11 17:46:59 -03:00
Patron.pm Bug 20400: (follow-up) Several fixes from RM review 2018-04-20 17:59:06 -03:00
Patrons.pm Bug 9302: (QA follow-up) Consistency follow-up 2018-04-20 13:34:41 -03:00
Plugins.pm
…
Rating.pm
…
Ratings.pm
…
RecordProcessor.pm
…
RefundLostItemFeeRule.pm
…
RefundLostItemFeeRules.pm
…
Report.pm Bug 20052: (follow-up) Fix QA tool complaints and bad copy 2018-04-02 18:08:06 -03:00
Reports.pm Bug 20052: (follow-up) Fix QA tool complaints and bad copy 2018-04-02 18:08:06 -03:00
Review.pm
…
Reviews.pm Bug 18403: Deal with the DB user 2018-02-12 15:41:42 -03:00
Schema.pm
…
SearchEngine.pm
…
SearchField.pm
…
SearchFields.pm
…
SearchMarcMap.pm
…
SearchMarcMaps.pm
…
Serial.pm
…
Serials.pm
…
SimpleMARC.pm
…
Sitemapper.pm
…
Subscription.pm Bug 19855: Move getalert, addalert and delalert to Koha::Subscription 2018-04-23 14:22:15 -03:00
Subscriptions.pm
…
Suggestion.pm
…
SuggestionEngine.pm
…
Suggestions.pm
…
Token.pm
…
UploadedFile.pm Bug 20081: Set inline headers for uploaded pdfs 2018-03-26 17:31:17 -03:00
UploadedFiles.pm
…
Uploader.pm Bug 19420: (QA Follow-up) Fix test, correct POD 2017-11-08 13:31:37 -03:00
Virtualshelf.pm
…
Virtualshelfcontent.pm
…
Virtualshelfcontents.pm
…
Virtualshelfshare.pm Bug 11943: Prevent double accepts in Koha::Virtualshelfshare 2018-05-11 10:52:43 -03:00
Virtualshelfshares.pm
…
Virtualshelves.pm Bug 20179: [sql_modes] Remove GROUP BY in get_shelves_containing_record 2018-04-09 16:15:17 -03:00
XSLT_Handler.pm
…
Z3950Server.pm Bug 20047: Add Koha::Z3950Server Oject and use it to get server count 2018-04-20 13:34:41 -03:00
Z3950Servers.pm Bug 20047: Add Koha::Z3950Server Oject and use it to get server count 2018-04-20 13:34:41 -03:00