From a8321e2ac3a7243d818c96d2239a5537cf59a33a Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 22 Nov 2016 20:47:47 +0200 Subject: [PATCH] Fix for #1157: error on templates page --- .../views/accounts/templates_and_reminders.blade.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/views/accounts/templates_and_reminders.blade.php b/resources/views/accounts/templates_and_reminders.blade.php index aeb49da33286..54969947a1a2 100644 --- a/resources/views/accounts/templates_and_reminders.blade.php +++ b/resources/views/accounts/templates_and_reminders.blade.php @@ -150,11 +150,13 @@ @if ($account->custom_invoice_text_label2)
  • $customInvoice1
  • @endif - @if (count($account->account_gateways) > 1) + @if (count($account->account_gateways) > 0) @foreach (\App\Models\Gateway::$gatewayTypes as $type) @if ($account->getGatewayByType($type)) -
  • ${{ Utils::toCamelCase(\App\Models\GatewayType::getAliasFromId($type)) }}Link
  • -
  • ${{ Utils::toCamelCase(\App\Models\GatewayType::getAliasFromId($type)) }}Button
  • + @if ($type != GATEWAY_TYPE_TOKEN) +
  • ${{ Utils::toCamelCase(\App\Models\GatewayType::getAliasFromId($type)) }}Link
  • +
  • ${{ Utils::toCamelCase(\App\Models\GatewayType::getAliasFromId($type)) }}Button
  • + @endif @endif @endforeach @endif