merge with geojson easify repo

This commit is contained in:
HolgerHatGarKeineNode
2023-02-06 21:40:40 +01:00
parent 397f46351d
commit 7250003fab

View File

@@ -73,7 +73,7 @@ class PrepareForBtcMapItem extends Component
{ {
$this->model = $this->meetup->city; $this->model = $this->meetup->city;
$this->population = $this->model->population; $this->population = $this->model->population;
$this->population_date = $this->model->population_date; $this->population_date = $this->model->population_date ?? '2021-12-31';
$this->getSearchResults(); $this->getSearchResults();
if ($this->osm_id) { if ($this->osm_id) {
$this->selectedItemOSMPolygons = collect($this->osmSearchResults) $this->selectedItemOSMPolygons = collect($this->osmSearchResults)
@@ -283,9 +283,9 @@ class PrepareForBtcMapItem extends Component
public function updatedPopulation($value) public function updatedPopulation($value)
{ {
$this->model->population = (int) str($value) $this->model->population = str($value)
->replace(['.', ','], '') ->replace(['.', ','], '')
->toString(); ->toInteger();
$this->model->save(); $this->model->save();
$this->notification() $this->notification()