summaryrefslogtreecommitdiff
path: root/app/views/voicemail_messages
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-30 15:07:33 +0200
committerPeter Kozak <spag@golwen.net>2013-04-30 15:07:33 +0200
commit55763dfa7b4072cf057b72c15e68c4d6c6bc1d14 (patch)
tree297890a928c93fa9787b92f64167dcbf80fe1eec /app/views/voicemail_messages
parent645901c2cb3fd52df146f086e1bc3ae6f59cabaf (diff)
phone_book_entry can be nil
Diffstat (limited to 'app/views/voicemail_messages')
-rw-r--r--app/views/voicemail_messages/_index_core.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/voicemail_messages/_index_core.html.haml b/app/views/voicemail_messages/_index_core.html.haml
index 57226aa..e5dc853 100644
--- a/app/views/voicemail_messages/_index_core.html.haml
+++ b/app/views/voicemail_messages/_index_core.html.haml
@@ -32,7 +32,8 @@
- image = nil
- if !voicemail_message.cid_number.blank?
- phone_book_entry = voicemail_message.phone_book_entry_by_number(voicemail_message.cid_number)
- - image = phone_book_entry.image_url(:mini)
+ - if phone_book_entry
+ - image = phone_book_entry.image_url(:mini)
%tr{:id => "message_#{voicemail_message.uuid}"}
%td.select_box= check_box_tag("selected_uuids[]", voicemail_message.uuid, false, :uuid => "select_item_#{voicemail_message.uuid}", :class => 'select_item')
%td