Product Kit "weight" field not updated when the weight of a product in the kit is modified

Project: 
Ubercart
Category: 
bug report
Version: 
Ubercart 1.x-dev
Priority: 
normal
Status: 
fixed

Steps to reproduce:
1. Create product with weight 2.65
2. Create product with weight 1.2
3. Create product kit with these two items (weight is set to 3.85)
4. Change price of first product to 2.45
BUG: Weight of the product kit is not updated to 2.65
Note: Weight is updated if you edit the product kit and save.

Cheers,

Jon Antoine
www.antoinesolutions.com

Re: Product Kit "weight" field not updated when the weight of a

Wow. Not a bug I'd noticed before. Certainly makes sense to get this working.

There's not as good a solution for the product prices. I'm going to hide behind Drupal's inability to INSERT NULL values, and postpone that until the next version. I'm sure a lot of people will disagree because prices are more likely to change, but I just don't want to disturb the code that much right now.

Lyle, Price was a typo.

Lyle,

Price was a typo. This bug had nothing to do with price. Step 4 should read "Change weight of first product to 2.45". Sorry for the confusion.

Cheers,

Jon Antoine
www.antoinesolutions.com

Lyle, I must have been in a

Lyle,

I must have been in a rush when I wrote this bug, sorry about that. I noticed another error in my bug report; the line beginning with "BUG:" should have read "BUG: Weight of the product kit is not updated to 3.65"

Cheers,

Jon Antoine
www.antoinesolutions.com

Re: Lyle, I must have been in a

I actually never noticed your typo. I was just thinking that some people might wonder why their kits' prices weren't being updated too, so I gave a preemptive answer for them.