mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix various code.
This commit is contained in:
@@ -291,6 +291,7 @@ Breadcrumbs::for(
|
||||
Breadcrumbs::for(
|
||||
'attachments.edit',
|
||||
static function (Generator $breadcrumbs, Attachment $attachment): void {
|
||||
/** @var Account|Bill|TransactionJournal $object */
|
||||
$object = $attachment->attachable;
|
||||
if ($object instanceof TransactionJournal) {
|
||||
$group = $object->transactionGroup;
|
||||
@@ -311,6 +312,7 @@ Breadcrumbs::for(
|
||||
Breadcrumbs::for(
|
||||
'attachments.delete',
|
||||
static function (Generator $breadcrumbs, Attachment $attachment): void {
|
||||
/** @var Account|Bill|TransactionJournal $object */
|
||||
$object = $attachment->attachable;
|
||||
if ($object instanceof TransactionJournal) {
|
||||
$breadcrumbs->parent('transactions.show', $object->transactionGroup);
|
||||
|
Reference in New Issue
Block a user