Skip to content

Commit 4f0113f

Browse files
author
Harm Akkerman
committed
Enable usage of a comma within cost field
1 parent 063c5a1 commit 4f0113f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Controller/AjaxController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ public function addCost($id)
159159
{
160160
$wi = $this->workIntervalMapper->find($id);
161161
$cost = $this->request->cost;
162+
$cost = str_replace(',', '.', $cost);
162163

163164
if (!is_numeric($cost)) {
164165
return new JSONResponse(['error' => 'Non numeric value'], Http::STATUS_BAD_REQUEST);

0 commit comments

Comments
 (0)