Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduled Announcement - Add user official code as new tag #5240

Open
wants to merge 1 commit into
base: 1.11.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions main/inc/lib/ScheduledAnnouncement.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ public function sendPendingMessages($urlId = 0)
'((user_lastname))' => $userInfo['lastname'],
'((user_first_name))' => $userInfo['firstname'],
'((user_last_name))' => $userInfo['lastname'],
'((user_official_code))' => $userInfo['official_code'],
'((user_picture))' => $userPicture,
'((lp_progress))' => $progress,
];
Expand Down Expand Up @@ -477,6 +478,7 @@ public function getTags()
'((user_last_name))',
'((user_picture))',
'((lp_progress))',
'((user_official_code))',
];
// get user extra fields list (only visible to self and filter-able)
$extraField = new ExtraField('user');
Expand Down