This commit is contained in:
Benjamin Takats
2023-01-28 23:12:44 +01:00
parent e1b0722e22
commit 35c1b4872a

View File

@@ -59,10 +59,12 @@ class PrepareForBtcMapItem extends Component
public function updatedPopulation($value) public function updatedPopulation($value)
{ {
$this->meetup->city->population = str($value) $value = str($value)
->replace('.', '') ->replace('.', '')
->replace(',', '.') ->replace(',', '.')
->toInteger(); ->toInteger();
$this->meetup->city->population = $value;
$this->population = $value;
$this->meetup->city->save(); $this->meetup->city->save();
$this->notification() $this->notification()
->success('Population updated', 'Success'); ->success('Population updated', 'Success');