mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +00:00
send notification to owner
This commit is contained in:
parent
0ac0ca5760
commit
45b51cb043
|
@ -260,9 +260,9 @@ class SeedDMS_NotificationService {
|
||||||
foreach ($notifyList["groups"] as $grp) {
|
foreach ($notifyList["groups"] as $grp) {
|
||||||
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||||
}
|
}
|
||||||
// if user is not owner send notification to owner
|
/* if user is not owner send notification to owner */
|
||||||
// if ($user->getID() != $document->getOwner()->getID())
|
if ($user->getID() != $document->getOwner()->getID())
|
||||||
// $this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||||
|
|
||||||
$this->sendRequestWorkflowActionMail($lc, $user);
|
$this->sendRequestWorkflowActionMail($lc, $user);
|
||||||
|
|
||||||
|
@ -424,6 +424,11 @@ class SeedDMS_NotificationService {
|
||||||
foreach ($notifyList["groups"] as $grp) {
|
foreach ($notifyList["groups"] as $grp) {
|
||||||
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* if user is not owner send notification to owner */
|
||||||
|
if ($user->getID() != $document->getOwner()->getID())
|
||||||
|
$this->toIndividual($user, $document->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||||
|
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -632,8 +637,8 @@ class SeedDMS_NotificationService {
|
||||||
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||||
}
|
}
|
||||||
// if user is not owner send notification to owner
|
// if user is not owner send notification to owner
|
||||||
// if ($user->getID() != $folder->getOwner()->getID())
|
if ($user->getID() != $folder->getOwner()->getID())
|
||||||
// $notifier->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
$this->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
@ -714,8 +719,8 @@ class SeedDMS_NotificationService {
|
||||||
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
$this->toGroup($user, $grp, $subject, $message, $params, SeedDMS_NotificationService::RECV_NOTIFICATION);
|
||||||
}
|
}
|
||||||
// if user is not owner send notification to owner
|
// if user is not owner send notification to owner
|
||||||
// if ($user->getID() != $folder->getOwner()->getID())
|
if ($user->getID() != $folder->getOwner()->getID())
|
||||||
// $this->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
$this->toIndividual($user, $folder->getOwner(), $subject, $message, $params, SeedDMS_NotificationService::RECV_OWNER);
|
||||||
}
|
}
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user