Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
workflow_notifications
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
workflow_notifications
Commits
dd7e5aca
Commit
dd7e5aca
authored
1 year ago
by
saranya ashokkumar
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3345562
by saranya ashokkumar: For Roles, email is not triggering
parent
ecdb69f3
Branches
1.0.x
Branches containing commit
Tags
3.0.0-beta1
3.0.1-beta
4.0.1-beta
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
workflow_notifications.module
+9
-8
9 additions, 8 deletions
workflow_notifications.module
with
9 additions
and
8 deletions
workflow_notifications.module
+
9
−
8
View file @
dd7e5aca
...
...
@@ -295,16 +295,17 @@ function _workflow_notifications_collect_mail_ids($roles, $mail_ids) {
$user_storage
=
\Drupal
::
service
(
'entity_type.manager'
)
->
getStorage
(
'user'
);
$ids
=
$user_storage
->
getQuery
()
->
condition
(
'status'
,
1
)
//
$ids = $user_storage->getQuery()
//
->condition('status', 1)
// @todo ->condition('roles', $role, 'IN')
->
execute
();
$users
=
$user_storage
->
loadMultiple
(
$ids
);
// $users = \Drupal\user\Entity\User::loadMultiple($ids);
//
->execute();
if
(
$ids
)
{
$users
=
$user_storage
->
loadMultiple
(
$ids
);
// $users = \Drupal\user\Entity\User::loadMultiple($ids);
foreach
(
$users
as
$key
=>
$user
)
{
$mail_ids
[]
=
$user
->
getEmail
();
foreach
(
$users
as
$key
=>
$user
)
{
$mail_ids
[]
=
$user
->
getEmail
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment