View Issue Details

IDProjectCategoryView StatusLast Update
0001768OXID eShop (all versions)1.03. Basket, checkout processpublic2012-12-10 13:23
Reporterd3 Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.2.0 revision 23610 
Fixed in Version4.3.1 revision 27257 
Summary0001768: Stock reduced again with every "$oOrder-Save();"
DescriptionIn 4.2.0/4.3.0 the stock is reduced in oxorderarticle::save(). This method checks "$this->isNewOrderItem()" to start stock reduce.
If modules (like ipayment) write additional stuff to order the stock reduced again with every "$oOrder-Save();" !

This will be fixed in oxorderarticle::save() with an additonal $this->setIsNewOrderItem(false); after updateArticleStock().
Additional InformationAll partners need to inform about chances like this!!
OXID should split the update documentation in two parts. One for customers with main changes and one for programmers with more technical details.

I lost one day to find this bug and the shopowner have to make an inventory because many article stocks are wrong!
TagsOrder
Theme
BrowserAll
PHP Versionany
Database Versionany

Activities

birute_meilutyte

2010-04-14 13:01

reporter   ~0002538

@developers: please, check from source code side, if such issue exist. write additional explanation in dev-general about changes, if needed.

arvydas_vapsva

2010-04-15 15:18

reporter   ~0002550

thnx for report and fix!