Results 1 to 7 of 7

Thread: Notes not linking to Contact

  1. #1
    NSNDev is offline Junior Member
    Join Date
    Feb 2009
    Posts
    4

    Question Notes not linking to Contact

    Hello,

    I am running two instances of Sugar (on two seperate servers), one is working the other not. The issue is when I attempt to create a new note from the History subpanel within the Contacts module, it's not linking to the contact and so consequently isn't displayed in the History subpanel.

    Interstingly enough, on the working version I noticed that when I create a new note a field called Contact with 'Select' and 'Clear' buttons is visible and already pre-populated with the corresponding contact. On the instance that's not working, this field is not even there.

    I am running the latest release of Sugar Community Edition version 5.2.0f on Windows 2003 using the mySQL database. I've made a few customizations but nothing to radical, primarily only what can be done from within the Studio and a few edits to the custom\modules\Contacts\language\en_us.lang.php to change the displayed name on a couple subpanels.

    Thanks in advance for any assistance with this issue

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

    Default Re: Notes not linking to Contact

    Hi!
    What your error_log says when you create the record?
    Can you find the relationship on the database?
    Priscila Kin Yamamoto Joranhezon
    Phone: +55 61 32010000
    priscila.joranhezon@nct.com.br
    NCT Informática Ltda

  3. #3
    NSNDev is offline Junior Member
    Join Date
    Feb 2009
    Posts
    4

    Default Re: Notes not linking to Contact

    After some additional troubleshooting I have found the root of the problem but still can't figure out the cause. Looking in the 'Notes' table the 'contact_id' is null. Manually entering in the correct contact ID make the record appear in the coresponding Contact's subpanel as expected.

    The only 'error_log' file I could find was in the \sugarcrm-5.2.0a\apache2\logs folder and had no relevant clues, only some certificate mismatch type errors (e.g. [warn] RSA server certificate CommonName (CN) `YOUR' does NOT match server name!?)

    So the question remains, why doesn't the 'Create Note or Attachment' function assign the 'contact_id' (or 'account_id' if called within the 'Accounts' module) to the newly created 'Notes' record?
    Thoughts anyone?

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Notes not linking to Contact

    Quote Originally Posted by NSNDev View Post
    Hello,

    I am running two instances of Sugar (on two seperate servers), one is working the other not. The issue is when I attempt to create a new note from the History subpanel within the Contacts module, it's not linking to the contact and so consequently isn't displayed in the History subpanel.

    Interstingly enough, on the working version I noticed that when I create a new note a field called Contact with 'Select' and 'Clear' buttons is visible and already pre-populated with the corresponding contact. On the instance that's not working, this field is not even there.

    I am running the latest release of Sugar Community Edition version 5.2.0f on Windows 2003 using the mySQL database. I've made a few customizations but nothing to radical, primarily only what can be done from within the Studio and a few edits to the custom\modules\Contacts\language\en_us.lang.php to change the displayed name on a couple subpanels.

    Thanks in advance for any assistance with this issue
    Check if the file custom/modules/Notes/metadata/editviewdefs.php exists.
    Let us know its content.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    mboudro is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: Notes not linking to Contact

    Quote Originally Posted by andopes View Post
    Check if the file custom/modules/Notes/metadata/editviewdefs.php exists.
    Let us know its content.

    Cheers
    Ironically, I am running into the exact same situation. I have two instances running on the same server with practically no customizations besides some extra fields. Within one of the instances, notes are not relating to Contacts as described by the OP; I have tested and confirmed that they work with Accounts. I took a look at the editviewdefs.php file as described above; I am a PHP programmer and from what I can understand, this is a custom definition file for the structure of the Notes "Edit View". I do not see any related field for the Contact Relationship.

    I decided to check out the editviewdefs.php of the other instance that is confirmed working properly; oddly enough, the "custom/modules/Notes/" doesn't exist at all in the working instance. These two were both installed at the same time and have been upgraded to the same version consistently. They run on the same server and access the same database.

    Andopes, what is the next step to troubleshoot this problem?

    Thanks
    Last edited by mboudro; 2009-07-08 at 04:43 PM.

  6. #6
    mboudro is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: Notes not linking to Contact

    Quote Originally Posted by mboudro View Post
    Ironically, I am running into the exact same situation. I have two instances running on the same server with practically no customizations besides some extra fields. Within one of the instances, notes are not relating to Contacts as described by the OP; I have tested and confirmed that they work with Accounts. I took a look at the editviewdefs.php file as described above; I am a PHP programmer and from what I can understand, this is a custom definition file for the structure of the Notes "Edit View". I do not see any related field for the Contact Relationship.

    I decided to check out the editviewdefs.php of the other instance that is confirmed working properly; oddly enough, the "custom/modules/Notes/" doesn't exist at all in the working instance. These two were both installed at the same time and have been upgraded to the same version consistently. They run on the same server and access the same database.

    Andopes, what is the next step to troubleshoot this problem?

    Thanks
    After continuing my investigation, I find that the Contact field had been removed from the Notes section of the Edit View within Sugar Studio. I am the administrator of these Sugar Instances and never removed any fields from the Notes section within studio.

    Therefore I added the Contact field back into the Edit View, confirmed that the field now appears in the "editvardefs.php" file, and yet it still does not show when trying to add a new note. Additionally, I renamed the editviewdefs.php file and deleted the original, and it still does not appear.
    Last edited by mboudro; 2009-07-08 at 05:25 PM.

  7. #7
    mboudro is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: Notes not linking to Contact

    Quote Originally Posted by mboudro View Post
    After continuing my investigation, I find that the Contact field had been removed from the Notes section of the Edit View within Sugar Studio. I am the administrator of these Sugar Instances and never removed any fields from the Notes section within studio.

    Therefore I added the Contact field back into the Edit View, confirmed that the field now appears in the "editvardefs.php" file, and yet it still does not show when trying to add a new contact.Additionally, I renamed the editviewdefs.php file and deleted the original, and it still does not appear.
    Well I have solved the problem, albeit possibly temporarily. I deleted both the editviewdefs.php and the quickcreatedefs.php file, and the contact field once again appears within both the quick create and full form Note section.

    My question is, how was this changed from the beginning? As previously stated, I am the sole administrator of these sugar instances and never removed/changed any field within the studio.

    Hopefully this will help the OP and any others with this particular problem.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Linking Contact to Google Sites
    By shmccaskill in forum Help
    Replies: 0
    Last Post: 2009-04-29, 05:30 PM
  2. Replies: 0
    Last Post: 2008-07-29, 05:28 PM
  3. Contact Creation : Address Linking
    By skewty in forum Feature Requests
    Replies: 2
    Last Post: 2008-05-16, 09:19 PM
  4. Replies: 1
    Last Post: 2008-05-12, 06:34 PM
  5. Linking Skype Name to Contact
    By yorkylad in forum Help
    Replies: 2
    Last Post: 2006-07-21, 08:25 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
  •