summaryrefslogtreecommitdiff
path: root/bin/sandbox
diff options
context:
space:
mode:
authorAlessandro Desantis <desa.alessandro@gmail.com>2020-09-24 14:11:59 +0200
committerAlessandro Desantis <desa.alessandro@gmail.com>2020-09-25 11:52:32 +0200
commitbf0f1c6a6c54a90861d736368408642c6852d48e (patch)
tree17b57225c30dea52c4d652680aecc42965fbe964 /bin/sandbox
parent19cd3c9e95d880b55a3a67fb4c3258becee31920 (diff)
Fail silently if order cancellation transition fails
In Solidus 2.11, it isn't possible to cancel an order that hasn't been completed anymore[1], which causes our failure dispatchers to fail when they call `order.cancel!`. To work around the issue, we're now only cancelling if the state machine allows us to (i.e., on Solidus <= 2.10 and in customized state machines). If the order cannot be cancelled, we skip the transition silently. [1]: https://github.com/solidusio/solidus/pull/3542
Diffstat (limited to 'bin/sandbox')
0 files changed, 0 insertions, 0 deletions