Results 1 to 3 of 3

Thread: Emails problem

  1. #1
    nrage is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    17

    Default Emails problem

    When I try to write an email to lead or account clicking on the link from the DetailView page and click send
    I get a warning "No match for field: Parent". I've figured that the warning is given by the addToValidateBinaryDependency() function described in sugar_3.js. It seems to me that the cause of the problem is that the parent_name is not passed to the Emails/EditView.php by GET. Why can this happen?
    Also the emails are not added to Leads history if I write them just typing the email addres in the to field.

  2. #2
    nrage is offline Sugar Community Member
    Join Date
    Apr 2006
    Posts
    17

    Default Re: Emails problem

    I added this line

    $xtpl->assign('FULL_NAME', urlencode(trim($focus->salutation.' '.$focus->first_name.' '.$focus->last_name)));
    to the modules\Leads\DetailView.php

    and changed modules\Leads\DetailView.html like that

    <a href="index.php?module=Emails&action=EditView&type =out
    &parent_type=Leads
    &parent_id={ID}
    &parent_name={FULL_NAME}///I added this line
    &to_addrs_ids={ID}
    &to_addrs_names={FIRST_NAME}&nbsp;{LAST_NAME}
    &to_addrs_emails={EMAIL1}
    &to_email_addrs={FIRST_NAME}&nbsp;{LAST_NAME}&nbsp ;&lt;{EMAIL1}&gt;
    &return_module=Leads
    &return_action=DetailView
    &return_id={ID}"
    class="tabDetailViewDFLink">
    This seems to have solved the first problem but I'm not sure that it's something I should have done. And the second problem still remains unsolved

  3. #3
    startak is offline Member
    Join Date
    May 2006
    Posts
    7

    Default Re: Emails problem

    edit your leads/detailview.html and change the email link to

    {EMAIL1_LINK}{EMAIL1}

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
  •