Hi,
First I load the stockedit-page and then add a new SKU or product to Ubercart, then I update the stockedit-page. Wrong products has been updated. I thought this was happened, not sure.
I found it strange because, the code looks right for me.
db_query("UPDATE {uc_product_stock} SET active = %d, stock = %d, threshold = %d, ordercount = %d WHERE sku = '%s'", $form_values['active_'. $index], $form_values['stock_'. $index], $form_values['threshold_'. $index], $form_values['ordercount_'. $index], $model);
If somebody can clean our minds...
