AnsweredAssumed Answered

Custom Visibility in 7.9.2.0

Question asked by Justin Kuehlthau on Nov 3, 2017
Latest reply on Nov 6, 2017 by André Lopes

Has anyone used custom Visibility code in v7.9.2.0?  I've used is successfully in the past, but when I copy the example from: http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Architecture/Teams/Custom_Record_Vis…  I get an error in my PHP Error log:

[Fri Nov 03 15:58:39.462274 2017] [php7:error] [pid 5836:tid 1140] [client ::1:51941] PHP Fatal error:  Uncaught Error: Class 'filterAccounts_A1' not found in C:\\Apache24\\htdocs\\SugarEnt7920\\data\\BeanVisibility.php:60\nStack trace:\n#0 C:\\Apache24\\htdocs\\SugarEnt7920\\data\\BeanVisibility.php(49): BeanVisibility->addStrategy('filterAccounts_...', true)\n#1 C:\\Apache24\\htdocs\\SugarEnt7920\\data\\SugarBean.php(668): BeanVisibility->__construct(Object(Account), Array)\n#2 C:\\Apache24\\htdocs\\SugarEnt7920\\data\\SugarBean.php(680): SugarBean->loadVisibility()\n#3 C:\\Apache24\\htdocs\\SugarEnt7920\\data\\SugarBean.php(616): SugarBean->addVisibilityStrategy('ACLVisibility')\n#4 C:\\Apache24\\htdocs\\SugarEnt7920\\include\\SugarObjects\\templates\\company\\Company.php(22): SugarBean->__construct()\n#5 C:\\Apache24\\htdocs\\SugarEnt7920\\modules\\Accounts\\Account.php(119): Company->__construct()\n#6 C:\\Apache24\\htdocs\\SugarEnt7920\\data\\BeanFactory.php(238): Account->__construct()\n#7 C:\\Apache24\\htdocs\\SugarEnt7920\\include\\SugarObjects\\VardefManager.php(769): BeanFactory::newBean('Accounts')\n#8 C:\\Apache24\\htdocs\\SugarEnt7920\\include\\SugarObjects\\Vard in C:\\Apache24\\htdocs\\SugarEnt7920\\data\\BeanVisibility.php on line 60, referer: http://localhost:8080/sugarent7920/index.php?module=Administration&action=Upgrade

Outcomes