Issue 362 365 Team Handover Showed Only A Name - edmozley/freeitsm GitHub Wiki
GitHub #362, reported by @cloudcogsio, and GitHub #365, reported by @duongtuanan ยท Notifications ยท since tickets could be handed to a team (#1566), fixed in 5.4.1 (#2983)
Two reports, one cause.
#365: in the bell, under a ticket's subject, a person's name - and not the person handling the ticket. The report circled two rows whose names were not the ticket's owner.
#362: in System โ Preferences โ Notifications, one switch read common.notifications.pref.ticket.team_assigned instead of words; and the same notification in the bell showed only a name.
When a ticket is handed to a team (Tickets โ Team), every member of that team gets a notification of type ticket.team_assigned. Like every bell row, it records who did it (actor_name) - the person who handed the ticket over - and the bell turns the type into a sentence around that name:
// assets/js/notification-bell.js - describe()
const base = 'common.notifications.event.' + n.event_type;
const txt = window.t(key, { actor: n.actor_name || window.t('common.notifications.someone') });
return txt === key ? (n.actor_name || '') : txt; // no sentence for this type: just the nameticket.team_assigned was the one type with no sentence and no Preferences label, in any language - they were never written when the type was added. So the bell fell back to the bare name of whoever handed the ticket over. Under a ticket subject, a name on its own reads as the person handling it, which is how #365 saw it: the right person, but with nothing saying what they had done.
Was it more than one place? One type, two labels (bell and Preferences), missing in all nine complete languages. Every other type has both.
The two labels, from @cloudcogsio's fix (taken as his own commit):
// lang/en/common.php
// notifications.event.ticket
'team_assigned' => 'Handed to your team by {actor}',
// notifications.pref.ticket
'team_assigned' => 'A ticket is handed to one of my teams',and the same two lines in Danish, German, Greek, Spanish, French, Indonesian, Polish and Ukrainian, using each language's own word for a ticket. The bell row now reads, for example, Handed to your team by Jane Smith.
| File | Change |
|---|---|
โช lang/en/common.php
|
The two labels (@cloudcogsio) |
โช lang/{da,de,el,es,fr,id,pl,uk}/common.php
|
The same, translated |
๐ข tests/notification-labels.php
|
New (@cloudcogsio): every type has an English bell line and Preferences label; extended to check every type in the eight other complete languages |
Reproduced first on a test install: Preferences showed the raw key; a ticket.team_assigned row in the bell showed only Jane Smith. Through the real assign endpoint, an administrator handing a ticket to a team wrote a row into each member's bell whose name was the administrator - the person who handed it over, not the ticket's owner, which is #365.
After the fix: Preferences reads A ticket is handed to one of my teams, and the bell row Handed to your team by Jane Smith (both checked on screen). tests/notification-labels.php passes 92 checks. Control: on the code before the fix it fails on exactly the two missing labels, and the language check fails on a locale file without them.
Update to 5.4.1. Rows already in the bell gain their wording too - the sentence is built when the bell is drawn, not when the row was written. The name in that row is meant to be who handed the ticket to your team; the person handling the ticket is on the ticket itself.
Correction (20 Nov 2026). "Who handed the ticket to your team" was not always true. When a workflow (or the mailbox import) changed the team, the name was whoever happened to be signed in for the request it ran inside - often someone from another team. @duongtuanan's second report on #365 found it; fixed in 5.8.0: The bell credited a change to someone who never made it.
For developers: a new notification type needs both labels in lang/en/common.php (notifications.event.<type> and notifications.pref.<type>) and the complete languages; tests/notification-labels.php fails until it has them.
Related: Notifications ยท Ticket watchers developer guide