add blocked without text in the timeline

stable
Juanfran 2015-06-09 08:47:01 +02:00
parent 2d67ca4eb6
commit 570d892c0f
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ timelineType = (timeline, event) ->
key: 'TIMELINE.BLOCKED',
translate_params: ['username', 'obj_name'],
description: (timeline) ->
return $(timeline.data.values_diff.blocked_note_html[1]).text()
if timeline.data.values_diff.blocked_note_html
return $(timeline.data.values_diff.blocked_note_html[1]).text()
else
return false
},
{ # UnBlocked
check: (timeline, event) ->