oneclickorgs / one-click-orgs

Create legal organisations with just one click

Home Page:http://oneclickorgs.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A ActionView::Template::Error occurred in members#show

chrismear opened this issue · comments

undefined method title' for nil:NilClass app/views/one_click/_vote.html.haml:3:in_app_views_one_click__vote_html_haml__175057459399347869_36463520'

This was caused by the manual deletion of a duplicate proposal, which left a number of votes with no proposal. When the app tried to display information about the vote, it couldn't find the proposal, and threw this error.

Although deletion of proposals doesn't occur in ordinary usage, we should still guard against this by having votes attached to a proposal automatically deleted if the proposal is deleted. I'll make a separate ticket for this.