Эх сурвалжийг харах

Use name_display (if not empty) in the UI

Vijayakrishnan 3 жил өмнө
parent
commit
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)) {