mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
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:
parent
db72dac243
commit
3fff354833
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ class ProjectBuildType extends AbstractType implements DataMapperInterface
|
|||
$matches = [];
|
||||
if (preg_match('/^lot_(\d+)$/', $key, $matches)) {
|
||||
$lot_id = (int) $matches[1];
|
||||
$data->setLotWithdrawAmount($lot_id, $form->getData());
|
||||
$data->setLotWithdrawAmount($lot_id, (float) $form->getData());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue