Skip to content
Snippets Groups Projects

Fixed CommerceGuys\Addressing\Zone\Zone->match()

6 files
+ 10
6
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -681,7 +681,7 @@ class Order extends CommerceContentEntityBase implements OrderInterface {
$mismatch_exception = new OrderVersionMismatchException(sprintf('Attempted to save order %s with version %s. Current version is %s.', $this->id(), $this->getVersion(), $this->original->getVersion()));
$log_only = $this->getEntityType()->get('log_version_mismatch');
if ($log_only) {
watchdog_exception('commerce_order', $mismatch_exception);
\Drupal::logger('commerce_order')->error($mismatch_exception);
}
else {
throw $mismatch_exception;
Loading