##// END OF EJS Templates
exc-tracking: fixed send-email bug when called from a source not attached to user session.
marcink -
r4497:8b17d3ec stable
parent child Browse files
Show More
@@ -131,7 +131,7 b' def send_exc_email(request, exc_id, exc_'
131
131
132 # NOTE(marcink): needed for email template rendering
132 # NOTE(marcink): needed for email template rendering
133 user_id = None
133 user_id = None
134 if request:
134 if hasattr(request, 'user'):
135 user_id = request.user.user_id
135 user_id = request.user.user_id
136 attach_context_attributes(TemplateArgs(), request, user_id=user_id, is_api=True)
136 attach_context_attributes(TemplateArgs(), request, user_id=user_id, is_api=True)
137
137
General Comments 0
You need to be logged in to leave comments. Login now