Issue 64: PATCH Creating a shipping type without price gives an ActiveRecord::StatementInvalid in Admin/preferencesController#add_new_rate_ajax
Status:  WontFix
Owner: ----
Closed:  Apr 2008
Reported by edmundo...@gmail.com, Mar 24, 2008
What steps will reproduce the problem?
1. Go to the administrative interface.
2. Create a shipping type (Shipping Rate) without price.

What is the expected output? What do you see instead?
The partial should not be rendered and an error should be displayed. Intead
it renders an error as a partial.

What version of the product are you using? On what operating system?
trunk. Ubuntu 7.04

Please provide any additional information below.
This is an entity that I think should have its own controller like tags and
sections and not depend on preferences controller. Anyway for now I will
just fix it.
 
empty_shipping_type_price.patch
1.7 KB   View   Download
Apr 8, 2008
Project Member #1 subim...@gmail.com
Don't think this really fixes things, as nil should be automatically teated as 0.0.....You should be able to have 
free shipping types, just not nil.

This patch needs work...
Status: Accepted
Apr 9, 2008
Project Member #2 subim...@gmail.com
Closed, as mentioned in the code and here previously any blank / nil value should be 0.0.

I like how it currently works with price in trunk
Status: WontFix