#213 ✓resolved
Evan Light

500 on clicking on Accounts tab

Reported by Evan Light | July 12th, 2010 @ 12:55 PM

Seeing this in the log:

SELECT sum("opportunities".amount) AS sum_amount FROM "opportunities" INNER JOIN "account_opportunities" ON "opportunities".id = "account_opportunities".opportunity_id WHERE ((((stage != "lost") AND (("account_opportunities".account_id = 6))) AND (("account_opportunities".account_id = 6))) AND (opportunities.deleted_at IS NULL OR opportunities.deleted_at > '2010-07-12 19:43:56.284651'))

Note that the 'stage != "lost"' doesn't source a particular table. That appears to be due to the named_scope in Opportunity here:

named_scope :not_lost, { :conditions => 'stage != "lost"'}

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby on Rails CRM platform for Web 2.0 and beyond

People watching this ticket

Referenced by

Pages