Explorar el Código

Use name_display (if not empty) in the UI

Vijayakrishnan hace 3 años
padre
commit
f2f6bfad5b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)) {