Results 1 to 5 of 5

Thread: Notes: parent_type

  1. #1
    sophmedia is offline Member
    Join Date
    Jul 2006
    Posts
    8

    Default Notes: parent_type

    Hello,
    I'm not sure if others are experiencing this problem, but for some reason when I create a note for a project the "parent_type" (the only drop down field on the "Edit Note" form) just contains "Simple", "Linked", and "Complex".

    I noticed that these values are loaded from line 134 of modules/Notes/EditView.php:
    Code:
    $parent_types = $app_list_strings['record_type_display_notes'];
    I searched for a good hour to find where that is loaded from and it seems to be coming from include/language/en_us.lang.php, yet the values for that variable do not match.

    For a work around I just replace the mentioned line above (134 of modules/Notes/EditView.php) with the following:
    Code:
    //$parent_types = $app_list_strings['record_type_display_notes'];
    $parent_types =   array (
        'Accounts' => 'Account',
            'Contacts' => 'Contact',
        'Opportunities' => 'Opportunity',
        'Cases' => 'Case',
        'Leads' => 'Lead',
    
    
    
    
    
    
        'Bugs' => 'Bug',
        'Emails' => 'Email',
        'Project' => 'Project',
        'ProjectTask' => 'Project Task',
        'Meetings' => 'Meeting',
        'Calls' => 'Call'
      );
    If anyone has any insight that would be great, but If not, yet you're experiencing this issue, hopefully the above helps you.

    Thanks

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Notes: parent_type

    If you look in your 'custom' directory I bet you will find another array by this name that someone modified with your original values (simple, complex etc...)
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    sophmedia is offline Member
    Join Date
    Jul 2006
    Posts
    8

    Default Re: Notes: parent_type

    Quote Originally Posted by kbrill
    If you look in your 'custom' directory I bet you will find another array by this name that someone modified with your original values (simple, complex etc...)
    Oddly enough I could not find anything that confirmed this.

    This is a fresh 4.2.1A install with the Knowledge Base, Products and Quotes, and the Module Builder modules installed.

    Thanks for your help.

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Notes: parent_type

    I can't tell you what without looking at your install but something somewhere is overriding the array and the only place that is supposed to happen is in the custom directory
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    mbroekel is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    Germany
    Posts
    15

    Default Re: Notes: parent_type

    after installing some "custom" modules there will be a dirctory tree called

    "\custom\application\Ext\Language"

    with the file "en_us.lang.ext" in it.

    you "only" have to add the whole definition of the "$parent_types = $app_list_strings['record_type_display_notes'];" array (incuding the default values if you wants to use them too) and add your custom types.

    but i have some other problems :

    i linked notes with tasks and evverything works pretty good now, but only after creating a new note through the task module detailview the generated link does not referes to the "tasks\detailview" but to the "notes\detailview", so that the depending ID cannot be found.

    so, my question is how to change this link ?

    i did'nt found ist, but i guess it should be somewhere in the "editview.php" file of the notes module.

    thanks a lot !

    P.S.:
    Open Sugar CRM v. 4.2.0
    Last edited by mbroekel; 2006-11-27 at 03:33 PM.
    Marcel Brökel,
    www.kimae.de

Thread Information

Users Browsing this Thread

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

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
  •