Skip to content

Commit

Permalink
Merge pull request #10 from RRZE-Webteam/bugfix/default-campo-keys-value
Browse files Browse the repository at this point in the history
Add default campo keys value
  • Loading branch information
zhyian authored May 30, 2024
2 parents 96066ac + de40e6b commit 2541cfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Application/DegreeProgramViewRaw.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public static function fromArray(array $data): self
),
applyNowLink: MultilingualLink::fromArray($data[DegreeProgram::APPLY_NOW_LINK]),
entryText: MultilingualString::fromArray($data[DegreeProgram::ENTRY_TEXT]),
campoKeys: CampoKeys::fromArray($data[DegreeProgram::CAMPO_KEYS]),
campoKeys: CampoKeys::fromArray($data[DegreeProgram::CAMPO_KEYS] ?? []),
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Application/DegreeProgramViewTranslated.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public static function fromArray(array $data): self
studentInitiatives: Link::fromArray($data[DegreeProgram::STUDENT_INITIATIVES]),
applyNowLink: Link::fromArray($data[DegreeProgram::APPLY_NOW_LINK]),
entryText: $data[DegreeProgram::ENTRY_TEXT],
campoKeys: CampoKeys::fromArray($data[DegreeProgram::CAMPO_KEYS]),
campoKeys: CampoKeys::fromArray($data[DegreeProgram::CAMPO_KEYS] ?? []),
);

if (empty($data[self::TRANSLATIONS])) {
Expand Down

0 comments on commit 2541cfa

Please sign in to comment.