Skip to content

Instantly share code, notes, and snippets.

@esimonetti
Last active August 9, 2019 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esimonetti/21e4903a88243eb9a1f5ae96ab6a5a9a to your computer and use it in GitHub Desktop.
Save esimonetti/21e4903a88243eb9a1f5ae96ab6a5a9a to your computer and use it in GitHub Desktop.
Extend portal factory file
<?php
// Enrico Simonetti
// enricosimonetti.com
// 2019-08-09
// Sugar version: 9.2.0
// filename: custom/src/Portal/Settings.php
namespace Sugarcrm\Sugarcrm\custom\Portal;
use Sugarcrm\Sugarcrm\Portal\Settings as OriginalPortalSettings;
class Settings extends OriginalPortalSettings
{
public function allowCasesForContactsWithoutAccount() : bool
{
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment