Skip to content

Commit

Permalink
v. 3.15.8
Browse files Browse the repository at this point in the history
-Correção: na última alteração, corrigimos um problema em persistir o status de um pedido quando o mesmo era alterado para outro, mas causamos um problema mais grave onde nenhum pedido com cartão era atualizado. Revertemos a última alteração e agora os pedidos são atualizados como esperado. Vamos trabalhar na solução dos status personalizados em outra atualização.
  • Loading branch information
r-martins committed Feb 24, 2023
2 parents 39aa108 + 87363de commit b0c8040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,12 @@ public function proccessNotificatonResult(SimpleXMLElement $xmlDocument)
$order->setState
(
$processedState->getState(),
$order->getState() != $processedState->getState(), //only use default status for state when changing
true,
// the order state
$message,
$processedState->getIsCustomerNotified()
);

//add only the history message, because its not added above when $status=false
if ($order->getState() == $processedState->getState()){
$order->addStatusHistoryComment($message);
}
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/community/RicardoMartins/PagSeguro/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<RicardoMartins_PagSeguro>
<version>3.15.7</version>
<version>3.15.8</version>
</RicardoMartins_PagSeguro>
</modules>
<global>
Expand Down

0 comments on commit b0c8040

Please sign in to comment.