Skip to content

Commit

Permalink
fix(Import): expect selectionOptions as array from json
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
  • Loading branch information
blizzz committed Sep 25, 2024
1 parent 7e82a2f commit 7e80e04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Db/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public static function fromDto(ColumnDto $data): self {
$column->setNumberDecimals($data->getNumberDecimals());
$column->setNumberPrefix($data->getNumberPrefix() ?? '');
$column->setNumberSuffix($data->getNumberSuffix() ?? '');
$column->setSelectionOptions($data->getSelectionOptions());
$column->setSelectionOptionsArray($data->getSelectionOptions());
$column->setSelectionDefault($data->getSelectionDefault());
$column->setDatetimeDefault($data->getDatetimeDefault());
$column->setUsergroupDefault($data->getUsergroupDefault());
Expand Down
4 changes: 2 additions & 2 deletions lib/Dto/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function __construct(
private ?int $numberDecimals = null,
private ?string $numberPrefix = null,
private ?string $numberSuffix = null,
private ?string $selectionOptions = null,
private ?array $selectionOptions = null,
private ?string $selectionDefault = null,
private ?string $datetimeDefault = null,
private ?string $usergroupDefault = null,
Expand Down Expand Up @@ -117,7 +117,7 @@ public function getNumberSuffix(): ?string {
return $this->numberSuffix;
}

public function getSelectionOptions(): ?string {
public function getSelectionOptions(): ?array {
return $this->selectionOptions;
}

Expand Down

0 comments on commit 7e80e04

Please sign in to comment.