Oct 07, 2008, 03:11 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Read what MODx Developers say: MODx Dev. Blogs
Pages: [1]   Go Down
  Print  
Author Topic: [Solved] Eform 1.4.4 - 0.9.6RC3 - ccsender spawns blank email  (Read 1796 times)
0 Members and 1 Guest are viewing this topic.
nowhinjing
Jr. Member
*
Posts: 27



« on: Apr 24, 2007, 11:35 AM »

Hi,

specifying that a message should be sent to the sender's email (ccsender=1) generates 2 emails, one correct and the other containing two single quotes ''.

I have managed to identify that this arises because the code believes that autotext is set - line 485.

The only place that I can see that it is set is line 109 - but why and how this happens is beyond me.

HELP !  Embarrassed

NWJ
« Last Edit: Apr 27, 2007, 08:26 AM by TobyL » Logged
pixelchutes
Coding Team
*
Posts: 801



WWW
« Reply #1 on: Apr 24, 2007, 09:22 PM »

You know what? I'm getting this one too, only I'm not even using &ccsender. (096 RC3 eForm)

I'm just using &report, haven't figured out how to prevent the extra blank email that get sent to me.
Logged

Mike Reid - www.pixelchutes.com
MODx Team Member / Contributor
[Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
________________________________
Where every pixel matters.
TobyL
Moderator
*
Posts: 758



« Reply #2 on: Apr 25, 2007, 04:24 AM »

Ok, confirmed,... and I'm working on it. I'll post a fix when I've solved it.

UPDATE!

DOohHHH...! Me brain dead sometimes... The $autotext generated an empty (besides 2 single quotes) error message if no template for it could be found, regardless if &automessage was set!

Replace the code on line 105 - 110 with this (without the php tags off course)
Code:
//<?php
if(
$isPostBack){
$report = (($tmp=efLoadTemplate($report))!==false)?$tmp:$_lang['ef_no_doc'] . " '$report'";
if($thankyou) $thankyou = (($tmp=efLoadTemplate($thankyou))!==false )?$tmp:$_lang['ef_no_doc'] . " '$thankyou'";
if($autotext) $autotext = (($tmp=efLoadTemplate($autotext))!==false )?$tmp:$_lang['ef_no_doc'] . " '$autotext'";
}
//?>




« Last Edit: May 18, 2007, 11:19 PM by TobyL » Logged

nowhinjing
Jr. Member
*
Posts: 27



« Reply #3 on: Apr 25, 2007, 11:40 AM »

Thanks, Jelle

this fixes the problem.

 Grin NWJ
Logged
sottwell
Documentation Team
*
Posts: 8,142



WWW
« Reply #4 on: Apr 25, 2007, 11:47 AM »

Yes, thank you VERY much!  Cheesy
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
pixelchutes
Coding Team
*
Posts: 801



WWW
« Reply #5 on: Apr 25, 2007, 11:36 PM »

Yes, thank you VERY much!  Cheesy

Yes, Thank You!! Any idea if this has made it to the latest SVN? ( > rev.2592)
Logged

Mike Reid - www.pixelchutes.com
MODx Team Member / Contributor
[Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
________________________________
Where every pixel matters.
TobyL
Moderator
*
Posts: 758



« Reply #6 on: Apr 26, 2007, 03:28 AM »


Yes, Thank You!! Any idea if this has made it to the latest SVN? ( > rev.2592)

yes, I think so. I committed it to the 095 branch just before opengeek started moving things Wink
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!