$ctx->{is_browser_staff} = 1;
}
- $ctx->{user_stats} = $U->simplereq(
- 'open-ils.actor',
- 'open-ils.actor.user.opac.vital_stats',
- $e->authtoken, $e->requestor->id);
+ $self->update_dashboard_stats();
} else {
return Apache2::Const::OK;
}
+sub update_dashboard_stats {
+ my $self = shift;
+
+ my $e = $self->editor;
+ my $ctx = $self->ctx;
+
+ $ctx->{user_stats} = $U->simplereq(
+ 'open-ils.actor',
+ 'open-ils.actor.user.opac.vital_stats',
+ $e->authtoken, $e->requestor->id);
+}
+
sub staff_saved_searches_set_expansion_state {
my $self = shift;
$ctx->{message_update_action} = $action;
$ctx->{message_update_changed} = $changed;
$ctx->{message_update_failed} = $failed;
+ $self->update_dashboard_stats();
}
}
}
$pcrud->request('open-ils.pcrud.transaction.commit', $self->editor->authtoken)->gather(1);
+ $self->update_dashboard_stats();
+
return $messages;
}