This patch makes it super obvious to understand by reading the code that
there's originally no foreign key.
To test:
1. Run the tests and notice they pass
2. Spot the # FIXME
3. Sign off :-D
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
sub creator {
my ($self) = @_;
- return Koha::Patrons->find( $self->authorisedby )
- if $self->authorisedby;
+ my $borrowernumber = $self->authorisedby; # FIXME missing FK here
+ return unless $borrowernumber;
+ return Koha::Patrons->find( $borrowernumber );
}
=head3 basket_group