AnsweredAssumed Answered

Custom dropdown ignores  custom/include/language/en_us.lang.php changes

Question asked by Incher on Dec 9, 2015
Latest reply on Dec 14, 2015 by Incher

Hi to all!

 

I have a custom dropdown in  custom/include/language/en_us.lang.php:

//...
$GLOBALS['app_list_strings']['users_with_titles_list'] = getUsersWithTitles();

 

custom/Extension/application/Ext/Utils/getUsersWithTitles.php:

function getUsersWithTitles(){
 11 
 12 static $users = null;
 13     if(!$users){
 14         $db =  DBManagerFactory::getInstance();
 15 
 16         $query = "SELECT id, first_name, last_name, IFNULL(title, '--') AS title, IFNULL(department, '--') AS department
 17                     FROM users
 18                     WHERE deleted = 0
 19                                         AND employee_status= 'Active'
 20                     ORDER BY first_name, last_name ASC";
 21         $result = $db->query($query, false);
 22 
 23         $users = array();
 25 
 26         while (($row = $db->fetchByAssoc($result)) != null) {
 27             $users[$row['id']] = $row['first_name'].' '.$row['last_name'].' - '.$row['title'].' ('.$row['department'].')';
 28         }
 29 
 30     }
 31     return $users;
 32 
 33 }

 

This dropdown worked fine since it was added to crm code, but now it's ignoring changes in custom/include/language/en_us.lang.php even after Quick Repair and Rebuild. And even if I intentionally make a syntax mistake it still ignores custom/include/language/en_us.lang.php file. My SugarCRM version is 6.5.

Please help me with this issue, thanks in advance!

Outcomes