mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Expand API options for available budgets and journal links
This commit is contained in:
@@ -230,6 +230,11 @@ class LinkTypeRepository implements LinkTypeRepositoryInterface
|
||||
public function storeLink(array $information, TransactionJournal $inward, TransactionJournal $outward): ?TransactionJournalLink
|
||||
{
|
||||
$linkType = $this->findNull((int)($information['link_type_id'] ?? 0));
|
||||
|
||||
if (null === $linkType) {
|
||||
$linkType = $this->findByName($information['link_type_name']);
|
||||
}
|
||||
|
||||
if (null === $linkType) {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user