Skip to content

Firefly III: a personal finances manager

Debug code for transaction view. [skip ci]

James Coleecdc00dcb7eb
diff --git a/app/Http/Controllers/TransactionController.php b/app/Http/Controllers/TransactionController.php
index 5a35d0b6e7..b4782f84bd 100644
--- a/app/Http/Controllers/TransactionController.php
+++ b/app/Http/Controllers/TransactionController.php
@@ -228,7 +228,7 @@ class TransactionController extends Controller
$what = strtolower($transactionType);
$subTitle = trans('firefly.' . $what) . ' "' . $journal->description . '"';
-
+ var_dump($transactions);exit;
return view('transactions.show', compact('journal', 'events', 'subTitle', 'what', 'transactions', 'linkTypes', 'links'));
}
diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twig
index 6fdb1d95ab..e1627928e6 100644
--- a/resources/views/transactions/show.twig
+++ b/resources/views/transactions/show.twig
@@ -347,8 +347,6 @@
<h3 class="box-title">{{ 'transactions'|_ }}</h3>
</div>
<div class="box-body no-padding">
- {{ dump(transactions) }}
- {{ dump(transactions|length) }}
<table class="table table-bordered table-striped">
<thead>
<tr>
@@ -362,9 +360,7 @@
</thead>
<tbody>
-
- {% set maxIdentifier = 1 %}
- {#{% set maxIdentifier = ((transactions|length) / 2) -1 %}#}
+ {% set maxIdentifier = ((transactions|length) / 2) -1 %}
{% for x in 0..maxIdentifier %}
<tr>
{# loop each transaction in the array.#}