Closed (duplicate)
Project:
Ubercart
Version:
7.x-3.x-dev
Component:
Stock
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jan 2012 at 17:30 UTC
Updated:
5 Aug 2013 at 14:52 UTC
Jump to comment: Most recent file
Comments
Comment #1
smartango commentedthe patch that solve the issue
Comment #2
smartango commentedmaybe it is better to add form #submit handler (form_alter in uc_stock), also a form #validate (in uc_attributes) to check sku duplication in uc_product_adjustments and product table
Comment #3
smartango commentedCan I have audience here? This is really a problem, users change sku on adjustments.
Really no one have this problem?
when I'll post a test that fail this could be taken into account?
Comment #4
debo7debo commented#1: ubercart-stock-attributes-consistency-1415590.patch queued for re-testing.
Comment #6
smartango commentedI re-send the patch, this could be arguable, the old value could be stored in form state (and no by additional query in form_submit), and also the implementation could entirely rely on uc_stock module using form alter and submit handler (form api).
But this works ... (actually the relative test is missing)
Comment #7
smartango commentedclosed as duplicated of #1398448: stock sku consistency on node update/delete