mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
fix error when sending notification after owner change
This commit is contained in:
parent
a93fdd91c8
commit
4dda2549c7
|
@ -1235,7 +1235,7 @@ class SeedDMS_NotificationService {
|
||||||
/* Send mail to old owner only if the currently logged in user is not the
|
/* Send mail to old owner only if the currently logged in user is not the
|
||||||
* owner and the owner is not already in the list of notifiers.
|
* owner and the owner is not already in the list of notifiers.
|
||||||
*/
|
*/
|
||||||
if($user->getID() != $oldowner()->getID() && false === SeedDMS_Core_DMS::inList($oldowner(), $notifyList['users']))
|
if($user->getID() != $oldowner()->getID() && false === SeedDMS_Core_DMS::inList($oldowner, $notifyList['users']))
|
||||||
$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
@ -1264,7 +1264,7 @@ class SeedDMS_NotificationService {
|
||||||
/* Send mail to old owner only if the currently logged in user is not the
|
/* Send mail to old owner only if the currently logged in user is not the
|
||||||
* owner and the owner is not already in the list of notifiers.
|
* owner and the owner is not already in the list of notifiers.
|
||||||
*/
|
*/
|
||||||
if($user->getID() != $oldowner()->getID() && false === SeedDMS_Core_DMS::inList($oldowner(), $notifyList['users']))
|
if($user->getID() != $oldowner()->getID() && false === SeedDMS_Core_DMS::inList($oldowner, $notifyList['users']))
|
||||||
$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
$this->toIndividual($user, $oldowner, $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user