Skip to content

Commit 9d2d748

Browse files
committed
Fix: Fix import when column was adjusted in preview screen
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
1 parent 8c75836 commit 9d2d748

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Dto/Column.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ public function __construct(
3838
}
3939

4040
public static function createFromArray(array $data): self {
41+
$customSettings = $data['customSettings'] ?? null;
42+
if (is_array($customSettings)) {
43+
$customSettings = json_encode($customSettings);
44+
}
45+
4146
return new self(
4247
title: $data['title'] ?? null,
4348
type: $data['type'] ?? null,
@@ -63,7 +68,7 @@ public static function createFromArray(array $data): self {
6368
usergroupSelectGroups: $data['usergroupSelectGroups'] ?? null,
6469
usergroupSelectTeams: $data['usergroupSelectTeams'] ?? null,
6570
showUserStatus: $data['showUserStatus'] ?? null,
66-
customSettings: $data['customSettings'] ?? null,
71+
customSettings: $customSettings,
6772
);
6873
}
6974

0 commit comments

Comments
 (0)