File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments