Fixed type conversion error in ProjectBuildType

This seemed only to occur, if the form field was disabled. This fixes issue #601
This commit is contained in:
Jan Böhmer 2024-04-28 18:09:17 +02:00
parent db72dac243
commit 3fff354833

View file

@ -155,7 +155,7 @@ class ProjectBuildType extends AbstractType implements DataMapperInterface
$matches = []; $matches = [];
if (preg_match('/^lot_(\d+)$/', $key, $matches)) { if (preg_match('/^lot_(\d+)$/', $key, $matches)) {
$lot_id = (int) $matches[1]; $lot_id = (int) $matches[1];
$data->setLotWithdrawAmount($lot_id, $form->getData()); $data->setLotWithdrawAmount($lot_id, (float) $form->getData());
} }
} }