summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/contact.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/FS/FS/contact.pm b/FS/FS/contact.pm
index c1b558d6c..2f9b339e8 100644
--- a/FS/FS/contact.pm
+++ b/FS/FS/contact.pm
@@ -741,6 +741,12 @@ sub firstlast {
# $contact_class->classname;
#}
+#autoloaded by FK in 4.x, but not during the upgrade
+sub contact_email {
+ my $self = shift;
+ qsearch('contact_email', { 'contactnum' => $self->contactnum } );
+}
+
=item by_selfservice_email EMAILADDRESS
Alternate search constructor (class method). Given an email address,