Hello and welcome to the forums,
Such feature is possible and it requires changes in modules/CRM/Contacts_0.php, line 107, replace code
case 'view': if (!$i->acl_check('view contact')) {
return $param['login']==Acl::get_user();
}
return ($param['permission']!=2 || $param['login']==Acl::get_user() || $param['created_by']==Acl::get_user());
with code
case 'view': $ret = array();
if (Utils_RecordBrowser::$mode!='edit') {
foreach ($param as $k=>$v)
if (!$v) $ret[$k] = false;
}
if (!$i->acl_check('view contact')) {
return $param['login']==Acl::get_user();
}
if ($param['permission']!=2 || $param['login']==Acl::get_user() || $param['created_by']==Acl::get_user()) return $ret;
return false;
This should give you desired effect, skipping all empty fields while in "view" mode.
Such feature, however, is something that needs to be carefully considered. Depending on how one uses epesi it may cause more trouble than it's worth. When viewing certain record, sometimes you are interested in checking particular value (for instance "city"). Now with this feature enabled, that field will not only change places on the screen depending on other values stored, but it can be missing, making it harder to spot that the field is not set than if it was displayed with empty value.
Either way, I hope you'll find epesi to your liking.
Kind regards,
Arek