Skip to content
Snippets Groups Projects
Commit 26934f60 authored by aydreeihn's avatar aydreeihn
Browse files

fix: call AnnotatedModel::wrap when dept has extended members due to new features

parent b26ccadf
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@ implements TemplateVariable, Searchable {
if (!$member->staff)
continue;
// Annoted the staff model with alerts and role
$extended[] = new AnnotatedModel($member->staff, array(
$extended[] = AnnotatedModel::wrap($member->staff, array(
'alerts' => $member->isAlertsEnabled(),
'role_id' => $member->role_id,
));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment