Hi Xavier,<br><br>We are analyzing the issue. We will try and have the fix for next release.<br><br><div class="gmail_quote">On Mon, Nov 8, 2010 at 8:37 PM, Xavier Mones <span dir="ltr">&lt;<a href="mailto:xmm@c3po.es">xmm@c3po.es</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

  
    
  
  <div 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="im">
    <div>
      
      
      <div align="left"><a href="http://www.c3po.es" target="_blank"><img style="width: 100px; min-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"><b>C3PO
            S.A.</b></font></div>
      <div align="left"><font face="Arial" size="2"><b>Xavier Monés</b></font></div>
      <div align="left"><font face="Arial" size="1"><b>Tel:</b>
          +34 934.179.955</font></div>
      <div align="left"><font face="Arial" size="1"><b>Fax:</b>
          +34 932.531.280</font></div>
      <div align="left"><font face="Arial" size="1">Alejandro Goicoechea
          6 · Local 9 · 08960 Sant Just Desvern (Spain)</font></div>
      <div align="left"><font face="Arial" size="1"><a href="mailto:xmm@c3po.es" target="_blank">xmm@c3po.es</a> · <a href="http://www.c3po.es" target="_blank">www.c3po.es</a> <a href="http://www.c3po.eu" target="_blank">www.c3po.eu</a> <a href="http://www.c3po.cat" target="_blank">www.c3po.cat</a></font></div>

      <div align="left"> </div>
      <div align="left">
        <hr width="100%" align="left" color="#808080" noshade size="1"> <font color="#808080" face="Arial" size="2">La
          informació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ónico al emisor del mensaje.
          Cualquier comunicación, copia, distribución u otro uso de esta
          información no autorizado expresamente por el emisor del
          mensaje está prohibido legalmente.</font>
        <hr width="100%" align="left" color="#808080" 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 size="1">
      </div>
    </div>
    <br></div>
    El 08/11/2010 12:55, Asha escribió:
    <blockquote type="cite"><div class="im">
      <pre>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 href="mailto:asha@vtiger.com" target="_blank">&lt;asha@vtiger.com&gt;</a> wrote:

</pre>
      </div><blockquote type="cite"><div class="im">
        <pre>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 href="mailto:xmm@c3po.es" target="_blank">&lt;xmm@c3po.es&gt;</a> wrote:

</pre>
        </div><blockquote type="cite">
          <pre><div class="im"> 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(&#39;Emails&#39;,$emailadd,$current_user-&gt;user_name,&#39;&#39;,&#39;Record
created-vTiger Team&#39;,$description,&#39;&#39;,&#39;&#39;,&#39;all&#39;,$focus-&gt;id);

for this one:

                   $mail_status =
send_mail(&#39;Emails&#39;,$emailadd,$current_user-&gt;user_name,&#39;&#39;,&#39;Record
created-vTiger Team&#39;,$description,&#39;&#39;,&#39;&#39;,&#39;all&#39;</div>,$crmid);


Regards,

 --
 <a href="http://www.c3po.es" target="_blank">&lt;http://www.c3po.es&gt;</a>
*C3PO S.A.*
*Xavier Monés*
*Tel:* +34 934.179.955
*Fax:* +34 932.531.280
Alejandro Goicoechea 6 · Local 9 · 08960 Sant Just Desvern (Spain)
<div class="im"><a href="mailto:xmm@c3po.es" target="_blank">xmm@c3po.es</a> · <a href="http://www.c3po.es" target="_blank">www.c3po.es</a> <a href="http://www.c3po.eu" target="_blank">www.c3po.eu</a> <a href="http://www.c3po.cat" target="_blank">www.c3po.cat</a>

 ------------------------------
La informació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ónico al
emisor del mensaje. Cualquier comunicación, copia, distribución u otro uso
de esta información no autorizado expresamente por el emisor del mensaje
está 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 href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a>

</div></pre>
        </blockquote>
        <pre>--
Regards,
Asha
vtiger Team

</pre>
      </blockquote>
      <pre></pre>
      <pre><fieldset></fieldset>
_______________________________________________
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></pre>
    </blockquote>
  </div>

</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Asha<br>vtiger Team<br>