Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix display bug for attachments
James Cole5545d1c1baba
diff --git a/database/migrations/2016_06_16_000002_create_main_tables.php b/database/migrations/2016_06_16_000002_create_main_tables.phpindex 3d7297fbea..1a61e5a579 100644--- a/database/migrations/2016_06_16_000002_create_main_tables.php+++ b/database/migrations/2016_06_16_000002_create_main_tables.php@@ -133,10 +133,10 @@ class CreateMainTables extends Migration$table->string('attachable_type', 255);$table->string('md5', 32);$table->string('filename', 1024);- $table->string('title', 1024);- $table->text('description');- $table->text('notes');- $table->string('mime', 200);+ $table->string('title', 1024)->nullable();+ $table->text('description')->nullable();+ $table->text('notes')->nullable();+ $table->string('mime', 1024);$table->integer('size', false, true);$table->boolean('uploaded')->default(1);diff --git a/resources/views/transactions/show.twig b/resources/views/transactions/show.twigindex bd78503b9b..a4df463e83 100644--- a/resources/views/transactions/show.twig+++ b/resources/views/transactions/show.twig@@ -161,7 +161,7 @@<td><i class="fa {{ att.mime|mimeIcon }}"></i><a href="{{ route('attachments.download', att.id) }}" title="{{ att.filename }}">- {% if att.title %}+ {% if strlen(att.title) > 0 %}{{ att.title }}{% else %}{{ att.filename }}