Results 1 to 1 of 1

Thread: Sugar Feeds - Cases

  1. #1
    kinshibuya's Avatar
    kinshibuya is offline A Sugar Hero
    Join Date
    Jul 2008
    Location
    brasil
    Posts
    521

    Default Sugar Feeds - Cases

    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
                    );
            }
    		
        }
    }
    Attached Images Attached Images  
    Last edited by kinshibuya; 2009-07-14 at 03:19 PM. Reason: Forgot attachment
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. No RSS Feeds!
    By terji in forum Help
    Replies: 9
    Last Post: 2009-08-14, 09:43 AM
  2. RSS FEEDS... not working
    By anisha in forum Developer Help
    Replies: 2
    Last Post: 2009-07-28, 01:54 PM
  3. Replies: 2
    Last Post: 2009-07-08, 05:45 AM
  4. Sugar/Mambo - portal cases invisible in Sugar
    By mshallop in forum Web Self Service Portal
    Replies: 5
    Last Post: 2007-02-14, 03:10 PM
  5. RSS Feeds
    By Podilarius in forum Help
    Replies: 2
    Last Post: 2005-09-13, 10:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •