I would like to be able to view more than 10 tabs without an overflow menu showing up. I have accomplished this before but 6.0 is giving me problems. I found out how to change the drop down menu to go all the way up to 20 with the following in sugar_root/modules/users/editview.php:
But whenever I select an amount over 10, it reverts my settings back down to 7 (which is the default max tabs in config.php). I think due to something in the following code:Code:$sugar_smarty->assign("MAX_TAB_OPTIONS", range(1, 10));
I will attempt to both change the default value in config.php and comment out the code to set the value to default. However what I would really like to do is figure out why and where it is resetting in the first place and just make it stop. That way each user can set their own preference instead of being assigned a value.Code:$user_max_tabs = $focus->getPreference('max_tabs'); if(isset($user_max_tabs) && $user_max_tabs > 0) { $sugar_smarty->assign("MAX_TAB", $user_max_tabs); } elseif(SugarThemeRegistry::current()->maxTabs > 0) { $sugar_smarty->assign("MAX_TAB", SugarThemeRegistry::current()->maxTabs); } else { $sugar_smarty->assign("MAX_TAB", $GLOBALS['sugar_config']['default_max_tabs']); }


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks