mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
fix php error when removing versions of a document
This commit is contained in:
parent
4145b67dd6
commit
177e3c571a
|
@ -104,7 +104,7 @@ else {
|
||||||
* be informed about the removal.
|
* be informed about the removal.
|
||||||
*/
|
*/
|
||||||
$emailUserList = array();
|
$emailUserList = array();
|
||||||
$emailUserList[] = $version->_userID;
|
$emailUserList[] = $version->getUser()->getID();
|
||||||
$emailGroupList = array();
|
$emailGroupList = array();
|
||||||
$status = $version->getReviewStatus();
|
$status = $version->getReviewStatus();
|
||||||
foreach ($status as $st) {
|
foreach ($status as $st) {
|
||||||
|
@ -150,12 +150,12 @@ else {
|
||||||
$nl=$document->getNotifyList();
|
$nl=$document->getNotifyList();
|
||||||
$userrecipients = array();
|
$userrecipients = array();
|
||||||
foreach ($emailUserList as $eID) {
|
foreach ($emailUserList as $eID) {
|
||||||
$eU = $version->_document->_dms->getUser($eID);
|
$eU = $version->getDMS()->getUser($eID);
|
||||||
$userrecipients[] = $eU;
|
$userrecipients[] = $eU;
|
||||||
}
|
}
|
||||||
$grouprecipients = array();
|
$grouprecipients = array();
|
||||||
foreach ($emailGroupList as $eID) {
|
foreach ($emailGroupList as $eID) {
|
||||||
$eU = $version->_document->_dms->getGroup($eID);
|
$eU = $version->getDMS()->getGroup($eID);
|
||||||
$grouprecipients[] = $eU;
|
$grouprecipients[] = $eU;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user