Product SKUs and Adjustments does not display with blank attributes.

Project: 
Ubercart
Category: 
bug report
Priority: 
normal
Assigned: 
Unassigned
Status: 
active

If you have an attribute with 4 options, site works as expected (allowing 4 adjustments). Add a 2nd attribute with no options (ie user text input) and all adjustments options vanish.

Think of the situation selling customized teeshirts, you need a text field for the custom text, but also a size option to track stock (with different SKU for each size).

Workaround :

Create a SKU adjustment before adding the 2nd attribute, its still accessible via the stock tab (if you have it configured).

Re: Product SKUs and Adjustments does not display with blank att

I guess I'm glad to see this bug confirmed. I noticed it last week while I was auditing the attribute module. There's something unexpected going on in the query that builds the adjustment form, but I haven't found a way around it yet.

Re: Re: Product SKUs and Adjustments does not display with blank

Got it figured out. I had been trying to fix the wrong query to select only the right attributes. That's actually the job of the much simpler query right before it.

The change has been committed.