mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #2683
This commit is contained in:
parent
e3e9e8e859
commit
67f9d23714
@ -125,7 +125,7 @@ class LinkController extends Controller
|
|||||||
if (null === $other) {
|
if (null === $other) {
|
||||||
session()->flash('error', (string)trans('firefly.invalid_link_selection'));
|
session()->flash('error', (string)trans('firefly.invalid_link_selection'));
|
||||||
|
|
||||||
return redirect(route('transactions.show', [$journal->id]));
|
return redirect(route('transactions.show', [$journal->transaction_group_id]));
|
||||||
}
|
}
|
||||||
|
|
||||||
$alreadyLinked = $this->repository->findLink($journal, $other);
|
$alreadyLinked = $this->repository->findLink($journal, $other);
|
||||||
@ -133,13 +133,13 @@ class LinkController extends Controller
|
|||||||
if ($other->id === $journal->id) {
|
if ($other->id === $journal->id) {
|
||||||
session()->flash('error', (string)trans('firefly.journals_link_to_self'));
|
session()->flash('error', (string)trans('firefly.journals_link_to_self'));
|
||||||
|
|
||||||
return redirect(route('transactions.show', [$journal->id]));
|
return redirect(route('transactions.show', [$journal->transaction_group_id]));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($alreadyLinked) {
|
if ($alreadyLinked) {
|
||||||
session()->flash('error', (string)trans('firefly.journals_error_linked'));
|
session()->flash('error', (string)trans('firefly.journals_error_linked'));
|
||||||
|
|
||||||
return redirect(route('transactions.show', [$journal->id]));
|
return redirect(route('transactions.show', [$journal->transaction_group_id]));
|
||||||
}
|
}
|
||||||
Log::debug(sprintf('Journal is %d, opposing is %d', $journal->id, $other->id));
|
Log::debug(sprintf('Journal is %d, opposing is %d', $journal->id, $other->id));
|
||||||
$this->repository->storeLink($linkInfo, $other, $journal);
|
$this->repository->storeLink($linkInfo, $other, $journal);
|
||||||
|
@ -410,7 +410,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var modalDialogURI = '{{ route('transactions.link.modal', ['%JOURNAL%']) }}';
|
var modalDialogURI = '{{ route('transactions.link.modal', ['%JOURNAL%']) }}';
|
||||||
var acURI = '{{ route('json.autocomplete.all-journals-with-id') }}';
|
var acURI = '{{ route('json.autocomplete.all-journals-with-id') }}';
|
||||||
var groupURI = '{{ route('transactions.show',['%GROUP']) }}';
|
var groupURI = '{{ route('transactions.show',['%GROUP%']) }}';
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ FF_VERSION }}"></script>
|
<script type="text/javascript" src="v1/js/lib/typeahead/typeahead.bundle.min.js?v={{ FF_VERSION }}"></script>
|
||||||
<script type="text/javascript" src="v1/js/ff/transactions/show.js?v={{ FF_VERSION }}"></script>
|
<script type="text/javascript" src="v1/js/ff/transactions/show.js?v={{ FF_VERSION }}"></script>
|
||||||
|
Loading…
Reference in New Issue
Block a user