Support:ModuleSurfer expired prompt in Project

From dispage wiki

Jump to:navigation, search
INFO
Bug
dispage extension ModuleSurfer
extension release1.1.00
priority{{{priority}}}
SugarCRM version
SugarCRM editionsPRO, ENT
Server OS
PHP version
DB Engine
MySQL version
Fix version1.1.00a




Issue:

The following javascript alert erroneously appears in Project and Project Tasks Modules.

ModuleSurfer cannot be activated due to the expiration of the cached decryption key


Solution:

The manual fix is reported below.


1- Locate the code

 {* BEGIN ModuleSurfer ::TAG 0121r75f:: *}
{php} 

$this->_tpl_vars['disableMS'] = $_REQUEST['action'] == 'UnifiedSearch' || in_array($_REQUEST['module'], array('Activities', 'Calendar', 'Employees', 'Projects', 'Reports')) || file_exists('modules/'.$_REQUEST['module'].'/Calendar.php'); 

in "<sugar_dir>/include/ListView/ListViewGeneric.tpl".


2- Replace it with

{* BEGIN ModuleSurfer ::TAG 0121r75f:: *}
{php} 

$this->_tpl_vars['disableMS'] = $_REQUEST['action'] == 'UnifiedSearch' || in_array($_REQUEST['module'], array('Activities', 'Calendar', 'Employees', 'Project', 'ProjectTask', 'Reports')) || file_exists('modules/'.$_REQUEST['module'].'/Calendar.php'); 

Navigation
dispage support
Toolbox