Changeset [7a8cbf888cd8c3d2285d78940ebdeaeb61f62c68] by Nathan B

March 19th, 2011 @ 03:40 AM

Fixed logic error in opportunity controller saving / removing an account. Now, to remove an account, the param must be :account => {}. If no account param is given, don't touch the saved account. Added spec for this case. Also fixed a typo, and changed tests to use 'Setting.default_access' instead of assuming 'Private'
https://github.com/michaeldv/fat_free_crm/commit/7a8cbf888cd8c3d228...

Committed by Nathan B

  • M app/models/opportunity.rb
  • M spec/controllers/opportunities_controller_spec.rb
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