Skip to content
Snippets Groups Projects
Commit 8dbd67c5 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge pull request #3068 from protich/feature/email-alias


Email aliases

Reviewed-By: default avatarJared Hancock <jared@osticket.com>
parents 284fcc3a 4b7d7c3d
Branches
Tags
No related merge requests found
......@@ -216,7 +216,10 @@ class Email extends VerySimpleModel {
/******* Static functions ************/
static function getIdByEmail($email) {
$qs = static::objects()->filter(array('email' => $email))
$qs = static::objects()->filter(Q::any(array(
'email' => $email,
'userid' => $email
)))
->values_flat('email_id');
$row = $qs->first();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment