<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#336666" bgcolor="#ffffff">
    <font size="-1"><font face="Trebuchet MS">Hi Asha,<br>
        <br>
        You are right. There is no check for the filestatus field of the
        vtiger_notes table. The function addAllAttachments of
        modules/Emails/mail.php should be modified to check for it.<br>
        <br>
        But anyway, the sendNotificationToGroups is called when a record
        is created, and the attachment is sent for Documents, is unusual
        that somebody creates a new record for Documents which is not
        active.<br>
        <br>
        Best regards,<br>
        <br>
      </font></font>
    <div class="moz-signature">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta content="MSHTML 6.00.2900.5583" name="GENERATOR">
      <div align="left"><a href="http://www.c3po.es"><img style="width:
            100px; height: 75px;" alt=""
            src="cid:part1.05050106.02070802@c3po.es" vspace="2"
            align="left" border="0" hspace="0"></a></div>
      <div align="left"><font color="#0000ff" face="Arial" size="4"><strong>C3PO
            S.A.</strong></font></div>
      <div align="left"><font face="Arial" size="2"><strong>Xavier Mon&eacute;s</strong></font></div>
      <div align="left"><font face="Arial" size="1"><strong>Tel:</strong>
          +34 934.179.955</font></div>
      <div align="left"><font face="Arial" size="1"><strong>Fax:</strong>
          +34 932.531.280</font></div>
      <div align="left"><font face="Arial" size="1">Alejandro Goicoechea
          6 &middot; Local 9 &middot; 08960 Sant Just Desvern (Spain)</font></div>
      <div align="left"><font face="Arial" size="1"><a
            href="mailto:xmm@c3po.es">xmm@c3po.es</a> &middot; <a
            href="http://www.c3po.es">www.c3po.es</a> <a
            href="http://www.c3po.eu">www.c3po.eu</a> <a
            href="http://www.c3po.cat">www.c3po.cat</a></font></div>
      <div align="left">&nbsp;</div>
      <div align="left">
        <hr width="100%" align="left" color="#808080" noshade="noshade"
          size="1"> <font color="#808080" face="Arial" size="2">La
          informaci&oacute;n contenida en este mensaje y los archivos adjuntos
          son confidenciales. Si usted recibe este mensaje por error
          debe destruirlo sin copiarlo ni comunicarlo e informar
          inmediatamente por correo electr&oacute;nico al emisor del mensaje.
          Cualquier comunicaci&oacute;n, copia, distribuci&oacute;n u otro uso de esta
          informaci&oacute;n no autorizado expresamente por el emisor del
          mensaje est&aacute; prohibido legalmente.</font>
        <hr width="100%" align="left" color="#808080" noshade="noshade"
          size="1"> <font color="#808080" face="Arial" size="2">The
          information contained in this message and its attachments are
          confidential. If you have received this message by mistake,
          you must delete it without making any copy and communication.
          Furthermore, you have to immediately inform by e-mail about
          this incident to the sender. Any disclosure, reproduction,
          distribution or other of this information without the express
          permission of the sender it is legally prohibited.</font>
        <hr width="100%" align="left" color="#808080" noshade="noshade"
          size="1">
      </div>
    </div>
    <br>
    El 08/11/2010 12:55, Asha escribi&oacute;:
    <blockquote
      cite="mid:AANLkTin3uEL=pei_hyvFrqa-T=isXu1OLvLpEGsKKV68@mail.gmail.com"
      type="cite">
      <pre wrap="">Hi Xavier,

We have found one issue in our test labs while testing the fix you have
suggested. It will send attachments for those documents also which are set
as inactive.


On Mon, Nov 8, 2010 at 3:10 PM, Asha <a class="moz-txt-link-rfc2396E" href="mailto:asha@vtiger.com">&lt;asha@vtiger.com&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi Xavier,

Thanks for identifying the issue. We will review the issue as well as the
fix and update you about it.

On Mon, Nov 8, 2010 at 2:03 PM, Xavier Mones <a class="moz-txt-link-rfc2396E" href="mailto:xmm@c3po.es">&lt;xmm@c3po.es&gt;</a> wrote:

</pre>
        <blockquote type="cite">
          <pre wrap=""> Hello,

the is a bug in the sendNotificationToGroups function in
include\utils\CommonUtils.php that makes that the send_mail function does
not find the attachments for the notification email.

It applies in 5.1.0 and 5.2.0.

Solution is to change this line:

                   $mail_status =
send_mail('Emails',$emailadd,$current_user-&gt;user_name,'','Record
created-vTiger Team',$description,'','','all',$focus-&gt;id);

for this one:

                   $mail_status =
send_mail('Emails',$emailadd,$current_user-&gt;user_name,'','Record
created-vTiger Team',$description,'','','all',$crmid);


Regards,

 --
 <a class="moz-txt-link-rfc2396E" href="http://www.c3po.es">&lt;http://www.c3po.es&gt;</a>
*C3PO S.A.*
*Xavier Mon&eacute;s*
*Tel:* +34 934.179.955
*Fax:* +34 932.531.280
Alejandro Goicoechea 6 &middot; Local 9 &middot; 08960 Sant Just Desvern (Spain)
<a class="moz-txt-link-abbreviated" href="mailto:xmm@c3po.es">xmm@c3po.es</a> &middot; <a class="moz-txt-link-abbreviated" href="http://www.c3po.es">www.c3po.es</a> <a class="moz-txt-link-abbreviated" href="http://www.c3po.eu">www.c3po.eu</a> <a class="moz-txt-link-abbreviated" href="http://www.c3po.cat">www.c3po.cat</a>

 ------------------------------
La informaci&oacute;n contenida en este mensaje y los archivos adjuntos son
confidenciales. Si usted recibe este mensaje por error debe destruirlo sin
copiarlo ni comunicarlo e informar inmediatamente por correo electr&oacute;nico al
emisor del mensaje. Cualquier comunicaci&oacute;n, copia, distribuci&oacute;n u otro uso
de esta informaci&oacute;n no autorizado expresamente por el emisor del mensaje
est&aacute; prohibido legalmente.
------------------------------
The information contained in this message and its attachments are
confidential. If you have received this message by mistake, you must delete
it without making any copy and communication. Furthermore, you have to
immediately inform by e-mail about this incident to the sender. Any
disclosure, reproduction, distribution or other of this information without
the express permission of the sender it is legally prohibited.
------------------------------

_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a>

</pre>
        </blockquote>
        <pre wrap="">


--
Regards,
Asha
vtiger Team

</pre>
      </blockquote>
      <pre wrap="">


</pre>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
    </blockquote>
  </body>
</html>