Skip to content

Commit

Permalink
PES-2068 CR - final fix for strange VM null handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrakor committed May 3, 2024
1 parent d244a02 commit 137ff3e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zasilkovna.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,13 @@ function plgVmConfirmedOrder(VirtueMartCart $cart, array $order): ?bool {
$values['length'] = (int)$this->model->getConfig(ConfigurationValidator::KEY_DEFAULT_LENGTH);
$values['width'] = (int)$this->model->getConfig(ConfigurationValidator::KEY_DEFAULT_WIDTH);
$values['height'] = (int)$this->model->getConfig(ConfigurationValidator::KEY_DEFAULT_HEIGHT);
} else {
//empty string to force null in database
$values['length'] = '';
$values['width'] = '';
$values['height'] = '';
}

$this->storePSPluginInternalData($values);

return true;
Expand Down

0 comments on commit 137ff3e

Please sign in to comment.