Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
2 Jun 2009 at 16:11 UTC
Updated:
25 Jun 2009 at 13:10 UTC
Jump to comment: Most recent file
In our site, we have a lot of "Adjusted" SKUs (for various sizes and other attributes). The Stock view (node/nn/edit/stock) sometimes misses a SKU or two. I've tracked it down to this line in uc_product.module (aroudn line 1585)
models[$node->model] = $node->model;
I'm not much of a PHP programmer, but this seems broken to me. Instead, doing something like
$models[] = $node->model;
(i.e. append the base SKU).
seems to solve the problem.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 479856.sku_fix.2.x.patch | 543 bytes | cha0s |
Comments
Comment #1
cha0s commentedYeah, dunno why that code was left like that (was my mistake).
Your fix is correct, thanks! =)
Comment #2
Island Usurper commentedThanks, guys. Committed.