Skip to content
Extraits de code Groupes Projets
Valider 956f0044 rédigé par MrZYX's avatar MrZYX
Parcourir les fichiers

set @contacts_of_contact_count in photos#index, thanks LPrelle

parent e3388869
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -23,9 +23,11 @@ class PhotosController < ApplicationController
if @contact
@aspects_with_person = @contact.aspects
@contacts_of_contact = @contact.contacts
@contacts_of_contact_count = @contact.contacts.count
else
@contact = Contact.new
@contacts_of_contact = []
@contacts_of_contact_count = 0
end
@posts = current_user.posts_from(@person).where(:type => 'Photo').paginate(:page => params[:page])
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter