Skip to content

Commit

Permalink
[-] CORE :Fix #PSCFV-8631 when order directly in payment state does n…
Browse files Browse the repository at this point in the history
…ot update stocks
  • Loading branch information
gRoussac committed Apr 22, 2013
1 parent 7c43ae0 commit 34a2c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/order/OrderHistory.php
Expand Up @@ -100,7 +100,7 @@ public function changeIdOrderState($new_order_state, $id_order, $use_existing_pa
'id_order' => (int)$order->id
));

if (Validate::isLoadedObject($order) && ($old_os instanceof OrderState) && ($new_os instanceof OrderState))
if (Validate::isLoadedObject($order) && ($new_os instanceof OrderState))
{
// An email is sent the first time a virtual item is validated
$virtual_products = $order->getVirtualProducts();
Expand Down

0 comments on commit 34a2c01

Please sign in to comment.