Making Account Relationship from Cases Not Required

An older issues customers have had with the SugarCRM system was its apparent bias towards a business-to-business scheme. In recent years Sugar has addressed the concern and created ways ease business-to-consumer users into the CRM. A single configuration variable will affect several aspects of the system.

$sugar_config['require_accounts'] = false;

Adding this line to config.php (or preferably, config_override.php) will ensure that creating or modifying Cases will not require the user to select an Account.

Why and How?

Have a look at include\SugarObjects\VardefManager.php for the method applyGlobalAccountRequirements. This function will take any vardef called account_name in certain key modules and make it required, despite module-specific vardef definitions (i.e. in modules/Cases/vardefs.php or custom/modules/Cases/Ext/Vardefs/vardefs.ext.php).

The Case bean itself reverses the requirement if the require_accounts configuration parameter is set.

This entry was posted in SugarCRM. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Sage President\

Profiling Solutions, Inc
174 Carroll Street
Atlanta, GA 30312
Sales: 1 (866) 515-9959
Office Phone: (404) 525-8003
Office Fax: (404) 525-8005
info@profilingsolutions.com