Browse Source

Use name_display (if not empty) in the UI

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
f2f6bfad5b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)) {