Small fixes for team members

stable
Jesús Espino 2014-11-28 08:25:32 +01:00
parent 66d00ba9f3
commit 8e53cee768
1 changed files with 6 additions and 4 deletions

View File

@ -37,12 +37,14 @@ class TeamController extends mixOf(taiga.Controller, taiga.PageMixin)
"$tgResources", "$tgResources",
"$routeParams", "$routeParams",
"$q", "$q",
"$location",
"$tgNavUrls",
"$appTitle", "$appTitle",
"$tgAuth" "$tgAuth",
"tgLoader" "tgLoader"
] ]
constructor: (@scope, @rootscope, @repo, @rs, @params, @q, @appTitle, @auth, tgLoader) -> constructor: (@scope, @rootscope, @repo, @rs, @params, @q, @location, @navUrls, @appTitle, @auth, tgLoader) ->
@scope.sectionName = "Team" @scope.sectionName = "Team"
promise = @.loadInitialData() promise = @.loadInitialData()
@ -80,8 +82,8 @@ class TeamController extends mixOf(taiga.Controller, taiga.PageMixin)
return membership return membership
for membership in @scope.memberships for membership in @scope.memberships
if not membership.user.photo? if not membership.photo?
membership.user.photo = "/images/unnamed.png" membership.photo = "/images/unnamed.png"
return data return data