Skip to content

Commit

Permalink
[Numeric uses string values] Internally Pimcore uses string in the Nu…
Browse files Browse the repository at this point in the history
…meric Editable - so we have to cast it
  • Loading branch information
mike4git committed Jan 17, 2025
1 parent 8c2d673 commit 2ae67e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EditableDialogBox/EditableItem/NumericItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public function setDefaultValue(int $value): static
throw new \InvalidArgumentException(\sprintf('Default value "%d" is out of bounds: [%d,%d]', $value, $this->min, $this->max));
}

return $this->addConfig('defaultValue', $value);
return $this->addConfig('defaultValue', (string) $value);
}

protected function getConfig(): array
{
return [
'minValue' => $this->min,
'maxValue' => $this->max,
'minValue' => (string) $this->min,
'maxValue' => (string) $this->max,
];
}
}

0 comments on commit 2ae67e1

Please sign in to comment.