瀏覽代碼

Use name_display (if not empty) in the UI

Vijayakrishnan 3 年之前
父節點
當前提交
f2f6bfad5b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Models/Pro.php

+ 1 - 0
app/Models/Pro.php

@@ -14,6 +14,7 @@ class Pro extends Model
 
     public function displayName() {
         $name = [];
+        if(!empty($this->name_display)) return $this->name_display;
         if(!empty($this->name_last)) $name[] = $this->name_last;
         if(!empty($this->name_first)) $name[] = $this->name_first;
         if(!count($name)) {