Hi. I'm in 5.2 and using Sugar Feeds.
When i click on the case on sugar feeds i get the error:
'Error to Open record...'
I think the link migth be broken. In my modules/cases/SugarFeed/Casesfeed.php i have the follow:
Code:require_once('modules/SugarFeed/feedLogicBase.php'); require_once('modules/SugarFeed/SugarFeed.php'); class CaseFeed extends FeedLogicBase { var $module = 'Cases'; function pushFeed($bean, $event, $arguments){ $text = ''; if(empty($bean->fetched_row)){ $text = '{SugarFeed.CREATED_CASE} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name.'] {SugarFeed.FOR_CASE} [Accounts:' . $bean->account_id . ':' . $bean->account_name . ']<br>'. $bean->description; }else{ if(!empty($bean->fetched_row['status'] ) && $bean->fetched_row['status'] != $bean->status && $bean->status == 'Closed'){ $text = '{SugarFeed.CLOSED_CASE} [' . $bean->module_dir . ':' . $bean->id . ':' . $bean->name. '] {SugarFeed.FOR_CASE} [Accounts:' . $bean->account_id . ':' . $bean->account_name . ']'; } } if(!empty($text)){ SugarFeed::pushFeed($text, $bean->module_dir, $bean->id ,$bean->assigned_user_id ); } } }


LinkBack URL
About LinkBacks




Reply With Quote
Bookmarks