about summary refs log tree commit diff
path: root/laravel/app/Song.php
diff options
context:
space:
mode:
Diffstat (limited to 'laravel/app/Song.php')
-rw-r--r--laravel/app/Song.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/laravel/app/Song.php b/laravel/app/Song.php
index 58e2317..a71e997 100644
--- a/laravel/app/Song.php
+++ b/laravel/app/Song.php
@@ -13,7 +13,9 @@ class Song extends Model
     }
     public function getNameAttribute()
     {
-        return $this->title . ( $this->author ? " ($this->author)" : "" );
+        return $this->title
+            . ( $this->author ? " ($this->author)" : "" )
+            . ($this->plain_key ? " ($this->plain_key)" : "");
     }
     public function getPlainKeyAttribute()
     {