Skip to content

Commit

Permalink
v. 3.15.7
Browse files Browse the repository at this point in the history
-Correção: Quando a loja possui status personalizados, em alguns casos o status era alterado para o status padrão daquele estado quando uma notificação do pagseguro era recebida. Reportado por Carlos.
Merge branch 'release/3.15.7'
  • Loading branch information
r-martins committed Feb 17, 2023
2 parents 10ee965 + f2e7c33 commit 39aa108
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,16 @@ public function proccessNotificatonResult(SimpleXMLElement $xmlDocument)
$order->setState
(
$processedState->getState(),
true,
$order->getState() != $processedState->getState(), //only use default status for state when changing
// 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.6</version>
<version>3.15.7</version>
</RicardoMartins_PagSeguro>
</modules>
<global>
Expand Down

0 comments on commit 39aa108

Please sign in to comment.