Просмотр исходного кода

Use name_display (if not empty) in the UI

Vijayakrishnan 3 лет назад
Родитель
Сommit
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)) {