InventoryTransaction: sync inventories before throwing validation exception to caller

fixes #3226

really the transaction shouldn't be handling inventory sync at all, but that's a job for another commit.
This commit is contained in:
Dylan K. Taylor 2020-05-31 20:10:29 +01:00
parent 8c5a81cf5c
commit 2dc3cf8162

View File

@ -293,7 +293,12 @@ class InventoryTransaction{
$this->shuffleActions();
$this->validate();
try{
$this->validate();
}catch(TransactionValidationException $e){
$this->sendInventories();
throw $e;
}
if(!$this->callExecuteEvent()){
$this->sendInventories();