about summary refs log tree commit diff
path: root/laravel/app/Song.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2019-01-29 18:53:08 -0500
committerZach DeCook <zachdecook@gmail.com>2019-01-29 18:53:08 -0500
commit4cffc56aef98d44fb5cb12ec5e5ffae7207b843c (patch)
tree4f6968e40ad316baadb4f13196248821eeee74e5 /laravel/app/Song.php
parent29faf211114624ab724cfde5707649f9ae856ada (diff)
downloadprosongsa-4cffc56aef98d44fb5cb12ec5e5ffae7207b843c.tar.gz
* Editing: Go back to same key you came from
(Also show key in song name)
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()
     {