Skip to content

Commit

Permalink
Fix salesagility#10425 - Value of "currency_id" in custom table chang…
Browse files Browse the repository at this point in the history
…es from NULL to an empty string when saving
  • Loading branch information
serhiisamko091184 committed Oct 11, 2024
1 parent ce9cd5d commit 230358d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/DynamicFields/DynamicField.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ public function save($isUpdate)
continue;
}

if (($field['type'] === 'currency_id' && empty($this->bean->$name))) {
continue;
}

if (!empty($this->bean->bean_fields_to_save) && !in_array($name, $this->bean->bean_fields_to_save, true)){
continue;
}
Expand Down

0 comments on commit 230358d

Please sign in to comment.