Skip to content

Commit

Permalink
fix(SFT-1706): notification record mystery issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavs-gutmanis committed Jan 14, 2025
1 parent c95c0c2 commit 44e0b32
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function fromRecord(NotificationTemplateRecord $record): self

$template->id = $record->id ?? $record->filepath;
$template->uid = $record->uid ?? $record->filepath;
$template->pdfTemplateIds = $record->getPdfTemplateIds();
$template->pdfTemplateIds = $record->getPdfTemplateIdList();
$template->handle = $record->handle;
$template->name = $record->name;
$template->description = $record->description;
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/Records/NotificationTemplateRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function getPresetAssets(): null|array|string
return null;
}

public function getPdfTemplateIds(): array
public function getPdfTemplateIdList(): array
{
if (\is_array($this->pdfTemplateIds)) {
return $this->pdfTemplateIds;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function save(NotificationTemplateRecord $record): bool
$presetAssets = '';
}

$pdfTemplateIds = $record->getPdfTemplateIds();
$pdfTemplateIds = $record->getPdfTemplateIdList();
if (\is_array($pdfTemplateIds)) {
$pdfTemplateIds = implode(',', $pdfTemplateIds);
} else {
Expand Down

0 comments on commit 44e0b32

Please sign in to comment.