mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
license fix
This commit is contained in:
14
LICENSE.txt
14
LICENSE.txt
@@ -631,29 +631,29 @@ to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
EspoCRM - Open Source CRM
|
||||
Copyright (C) 2014 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
EspoCRM is free software: you can redistribute it and/or modify
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
EspoCRM is distributed in the hope that it will be useful,
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with EspoCRM. If not, see <http://www.gnu.org/licenses/>.
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
EspoCRM Copyright (C) 2014 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
|
||||
EspoCRM comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
|
||||
@@ -76,7 +76,6 @@ class Notifications extends \Espo\Core\Hooks\Base
|
||||
if ($entity->isNew()) {
|
||||
$parentType = $entity->get('parentType');
|
||||
$parentId = $entity->get('parentId');
|
||||
|
||||
$superParentType = $entity->get('superParentType');
|
||||
$superParentTypeId = $entity->get('superParentTypeId');
|
||||
|
||||
@@ -84,14 +83,20 @@ class Notifications extends \Espo\Core\Hooks\Base
|
||||
|
||||
if ($parentType && $parentId) {
|
||||
$userIdList = array_merge($userIdList, $this->getSubscriberIdList($parentType, $parentId));
|
||||
if ($superParentType && $superParentTypeId) {
|
||||
$userIdList = array_merge($userIdList, $this->getSubscriberIdList($superParentType, $superParentTypeId));
|
||||
}
|
||||
} else {
|
||||
$targetType = $entity->get('targetType');
|
||||
if ($targetType === 'users') {
|
||||
$targetUserIdList = $entity->get('usersIds');
|
||||
foreach ($targetUserIdList as $userId) {
|
||||
if ($userId == $this->getUser()->id) continue;
|
||||
$userIdList[] = $userId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($superParentType && $superParentTypeId) {
|
||||
$userIdList = array_merge($userIdList, $this->getSubscriberIdList($superParentType, $superParentTypeId));
|
||||
}
|
||||
|
||||
//$userIdList = array_merge($userIdList, $this->getMentionedUserIdList($entity));
|
||||
|
||||
$userIdList = array_unique($userIdList);
|
||||
|
||||
if (!empty($userIdList)) {
|
||||
|
||||
Reference in New Issue
Block a user