From acbf1fe24a915af32968765d33a28571631c323a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 22 Apr 2012 17:59:10 +0200 Subject: [PATCH] Fixed show dummy icon if no one exists. --- .../app/controllers/_application_controller.js.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index f48ddcb05..97ff553b0 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -601,8 +601,8 @@ class App.Controller extends Spine.Controller # users if params.type == 'User' for user of params.data - if user && !user.image - user.image = 'http://placehold.it/48x48' + if params.data[user] && !params.data[user]['image'] + params.data[user]['image'] = 'http://placehold.it/48x48' App.User.refresh( params.data[user], options: { clear: true } ) # tickets