Koha-clms/Koha/Schema/Result
Jonathan Druart 517494e0e5
Bug 20934: Fix display of old checkouts in the checkout history page
Again a regression caused by
  commit fa54100dff
  Bug 18403: Use patron-title.inc when hidepatronname is used [SPECIFIC for issuehistory]

GetBiblioIssues does a union all with issues and old_issues, so we
should old_issues as well.
To make the join on the items table we need to define the item and
patron methods. For consistency the relationships have been redefined
(item instead of itemnumber, borrower instead of borrowernumber) in the
DBIx::Class definition.

This is not perfect but I think the best way to provide an easy to
backport patch.

It highlights that we need improvements in this area.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
The patch works as expected.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 117e3a18f5)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-07-18 13:34:59 +01:00
..
AccountOffset.pm Bug 14826: DBIC Schema changes 2017-10-20 17:14:33 -03:00
AccountOffsetType.pm Bug 14826: DBIC Schema changes 2017-10-20 17:14:33 -03:00
Accountline.pm Bug 18786: DBIC Schema changes 2018-04-19 12:32:21 -03:00
ActionLog.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
AdditionalField.pm Bug 10855: (RM followup) DBIx update 2015-10-02 15:14:22 -03:00
AdditionalFieldValue.pm Bug 10855: (RM followup) DBIx update 2015-10-02 15:14:22 -03:00
Alert.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
ApiKey.pm Bug 20568: (QA follow-up) Get rid of the id column 2018-05-09 12:55:59 -03:00
Aqbasket.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Aqbasketgroup.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Aqbasketuser.pm Bug 7295: (follow-up) update DBIx::Class schema classes 2013-10-31 16:37:34 +00:00
Aqbookseller.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Aqbudget.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Aqbudgetborrower.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Aqbudgetperiod.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
AqbudgetsPlanning.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Aqcontact.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Aqcontract.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Aqinvoice.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Aqorder.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
AqorderUser.pm Bug 12648: (RM followup) DBIx schema update 2015-03-11 11:52:47 -03:00
AqordersItem.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
AqordersTransfer.pm Bug 12558: DBIx::Class schema update 07/2014 2014-07-11 16:26:23 -03:00
ArticleRequest.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
AudioAlert.pm Bug 11431: (QA followup) Simplify audio_alert_id to just id 2015-11-04 12:33:10 -03:00
AuthHeader.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
AuthSubfieldStructure.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
AuthTagStructure.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
AuthType.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
AuthorisedValue.pm Bug 12461 - Add patron clubs feature 2017-04-28 08:37:44 -04:00
AuthorisedValueCategory.pm Bug 17216: Update DBIC schema for MSS 2016-10-11 07:30:31 +00:00
AuthorisedValuesBranch.pm Bug 10363: There is no package for authorised values. 2015-10-19 12:46:27 -03:00
Biblio.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
BiblioFramework.pm Bug 18577: Add FIXME about the missing FK 2017-07-10 18:10:03 -03:00
BiblioMetadata.pm Bug 19724: DBIC Schema changes 2017-12-07 10:26:53 -03:00
Biblioimage.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Biblioitem.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Borrower.pm Bug 20568: Add mandatory description field for api keys 2018-05-09 12:55:58 -03:00
BorrowerAttribute.pm Bug 17813: DBIC update 2017-01-20 13:59:41 +00:00
BorrowerAttributeType.pm Bug 13757: DBIC update 2017-03-24 18:44:55 +00:00
BorrowerAttributeTypesBranch.pm Bug 12558: DBIx::Class schema update 07/2014 2014-07-11 16:26:23 -03:00
BorrowerDebarment.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
BorrowerFile.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
BorrowerMessagePreference.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
BorrowerMessageTransportPreference.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
BorrowerModification.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
BorrowerPasswordRecovery.pm Bug 8753: [QA Follow-up] Primary key and collation 2016-01-27 06:40:56 +00:00
BorrowerSync.pm Bug 11401: DBIx updates 2014-11-14 09:58:40 -03:00
Branch.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
BranchBorrowerCircRule.pm Bug 14045: DBIC Changes 2015-10-13 11:13:24 -03:00
BranchItemRule.pm Bug 15533 - DBRev - Update Schema Files to match current DB structure 2016-04-29 10:32:38 +00:00
BranchTransferLimit.pm Bug 12781: DBIx::Class schema update 08/2014 2014-08-21 09:35:47 -03:00
Branchtransfer.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Browser.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
CategoriesBranch.pm Bug 12558: DBIx::Class schema update 07/2014 2014-07-11 16:26:23 -03:00
Category.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
City.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
ClassSortRule.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ClassSource.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Club.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ClubEnrollment.pm Bug 20175: DBRev 17.12.00.013 2018-02-12 18:02:01 -03:00
ClubEnrollmentField.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ClubField.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ClubTemplate.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ClubTemplateEnrollmentField.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ClubTemplateField.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Collection.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
CollectionsTracking.pm Bug 12781: DBIx::Class schema update 08/2014 2014-08-21 09:35:47 -03:00
ColumnsSetting.pm Bug 10212: Columns configuration for tables - DB changes 2014-08-26 09:28:11 -03:00
Course.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
CourseInstructor.pm Bug 12558: DBIx::Class schema update 07/2014 2014-07-11 16:26:23 -03:00
CourseItem.pm Bug 14205: (RM followup) DBIx updates 2015-09-02 09:56:49 -03:00
CourseReserve.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
CreatorBatch.pm Bug 12558: DBIx::Class schema update 07/2014 2014-07-11 16:26:23 -03:00
CreatorImage.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
CreatorLayout.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
CreatorTemplate.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Currency.pm Bug 4078: DBIC Schema changes 2018-03-23 11:45:38 -03:00
DefaultBorrowerCircRule.pm Bug 14045: DBIC Changes 2015-10-13 11:13:24 -03:00
DefaultBranchCircRule.pm Bug 15533 - DBRev - Update Schema Files to match current DB structure 2016-04-29 10:32:38 +00:00
DefaultBranchItemRule.pm Bug 15533 - DBRev - Update Schema Files to match current DB structure 2016-04-29 10:32:38 +00:00
DefaultCircRule.pm Bug 15533 - DBRev - Update Schema Files to match current DB structure 2016-04-29 10:32:38 +00:00
Deletedbiblio.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
DeletedbiblioMetadata.pm Bug 19724: DBIC Schema changes 2017-12-07 10:26:53 -03:00
Deletedbiblioitem.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Deletedborrower.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Deleteditem.pm Bug 17672: DBIC Schema changes 2018-02-18 16:48:44 -03:00
Discharge.pm Bug 14368: (RM followup) DBIx update 2015-09-28 12:09:40 -03:00
EdifactEan.pm Bug 7736 [QA Followup] - Fix SQL, Add description field for Library EANs 2016-04-01 20:03:18 +00:00
EdifactMessage.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ExportFormat.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Fieldmapping.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
HoldFillTarget.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
HouseboundProfile.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
HouseboundRole.pm Bug 5670 - DBRev 16.06.00.036 2016-10-21 18:20:44 +00:00
HouseboundVisit.pm DO NOT PUSH: Add Housebound Schema files. 2016-10-21 18:17:56 +00:00
Illrequest.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Illrequestattribute.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ImportAuth.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
ImportBatch.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ImportBiblio.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
ImportItem.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ImportRecord.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ImportRecordMatch.pm Bug 12558: DBIx::Class schema update 07/2014 2014-07-11 16:26:23 -03:00
Issue.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Issuingrule.pm Bug 19804: DBIC Schema changes 2018-04-09 16:15:18 -03:00
Item.pm Bug 17672: DBIC Schema changes 2018-02-18 16:48:44 -03:00
ItemCirculationAlertPreference.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
ItemsLastBorrower.pm Bug 14945 - Add the ability to store the last patron to return an item 2015-12-31 19:32:20 +00:00
ItemsSearchField.pm Bug 17216: Revert changes to ItemsSearchField schema file 2016-10-18 15:57:22 +00:00
Itemtype.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ItemtypeLocalization.pm Bug 17835: Create a ItemtypeLocalization view 2017-04-14 10:43:51 -04:00
LanguageDescription.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
LanguageRfc4646ToIso639.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
LanguageScriptBidi.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
LanguageScriptMapping.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
LanguageSubtagRegistry.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Letter.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
LibraryGroup.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Linktracker.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Localization.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
MarcMatcher.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
MarcModificationTemplate.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
MarcModificationTemplateAction.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
MarcSubfieldStructure.pm Bug 18336: (follow-up) Shift TINYTEXT columns 2018-02-19 11:56:28 -03:00
MarcTagStructure.pm Bug 9701: (QA follow-up) DBIx schema changes 2018-04-12 10:50:34 -03:00
Matchcheck.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
MatcherMatchpoint.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Matchpoint.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
MatchpointComponent.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
MatchpointComponentNorm.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Message.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
MessageAttribute.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
MessageQueue.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
MessageTransport.pm Bug 17762 - DBRev 16.12.00.033 2017-05-09 21:01:40 +00:00
MessageTransportType.pm Bug 9016: (follow-up) update DBIC schema classes 2014-05-02 20:29:18 +00:00
MiscFile.pm Bug 3050: (follow-up) update DBIC schema classes 2014-05-25 21:17:39 +00:00
NeedMergeAuthority.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
OaiSet.pm Bug 3206: (RM followup) DBIx updates 2015-07-08 15:15:53 -03:00
OaiSetsBiblio.pm Bug 3206: (RM followup) DBIx updates 2015-07-08 15:15:53 -03:00
OaiSetsDescription.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
OaiSetsMapping.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
OauthAccessToken.pm Bug 20402: Update DBIX schema 2018-05-09 12:55:57 -03:00
OldIssue.pm Bug 20934: Fix display of old checkouts in the checkout history page 2018-07-18 13:34:59 +01:00
OldReserve.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
OpacNews.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Overduerule.pm Bug 15478 - Update the remaining schema files that do not match the db schema 2016-01-07 18:48:54 +00:00
OverduerulesTransportType.pm Updating the Schema files 2016-03-31 15:51:33 +00:00
PatronList.pm Bug 10565: (follow-up) refresh DBIC schema class files 2013-10-14 21:35:11 +00:00
PatronListPatron.pm Bug 10565: (follow-up) refresh DBIC schema class files 2013-10-14 21:35:11 +00:00
Patronimage.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
PendingOfflineOperation.pm Bug 13178: DBIC Schema changes 2017-10-27 14:10:28 -03:00
Permission.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
PluginData.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Printer.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
PrintersProfile.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Quote.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Rating.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
RefundLostItemFeeRule.pm Bug 14048: Add RefundLostItemFeeRule table and classes 2016-07-07 10:37:01 -06:00
RepeatableHoliday.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
ReportsDictionary.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Reserve.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Review.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
SavedReport.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
SavedSql.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
SearchField.pm Revert "Bug 20073: Update DBIC Schema changes" 2018-05-24 14:30:21 -03:00
SearchHistory.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
SearchMarcMap.pm Bug 12478: Manually add the many_to_many relationships 2016-04-26 20:20:12 +00:00
SearchMarcToField.pm Bug 12478: update the schema 2016-04-26 20:20:12 +00:00
Serial.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Serialitem.pm Bug 18427: DBIx schema changes 2017-04-21 14:01:33 -04:00
ServicesThrottle.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Session.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
SmsProvider.pm Bug 9021: Schema update 2016-02-14 12:40:05 +00:00
SocialData.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
SpecialHoliday.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Statistic.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Subscription.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
SubscriptionFrequency.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
SubscriptionNumberpattern.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Subscriptionhistory.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Subscriptionroutinglist.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Suggestion.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Systempreference.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Tag.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
TagAll.pm Bug 15084 [QA Followup] - Update Schema files 2016-03-04 19:41:21 +00:00
TagsApproval.pm Bug 18336: DBIC update 2018-02-16 17:53:43 -03:00
TagsIndex.pm Bug 18336: DBIC update 2018-02-16 17:53:43 -03:00
TmpHoldsqueue.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
TransportCost.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
UploadedFile.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
UserPermission.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
Userflag.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00
VendorEdiAccount.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Virtualshelfcontent.pm Bug 14544: [QA Follow-up] DBIx::Class changes 2015-11-05 10:00:31 -03:00
Virtualshelfshare.pm Bug 12558: DBIx::Class schema update 07/2014 2014-07-11 16:26:23 -03:00
Virtualshelve.pm Bug 18228: DBIx schema changes for Virtualshelve.pm 2017-07-05 13:35:23 -03:00
Z3950server.pm Bug 18336: DBIC Schema changes 2018-02-16 18:12:55 -03:00
Zebraqueue.pm Bug 8798: (follow-up) update the DBIC schema class files 2013-10-14 21:08:03 +00:00