Skip to content

Commit

Permalink
Merge pull request #1142 from FHenry/3.4
Browse files Browse the repository at this point in the history
update no_email column on unsubcribe link for contact
  • Loading branch information
eldy committed Jul 30, 2013
2 parents 72e0b75 + 4d37384 commit 22447cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/public/emailing/mailing-unsubscribe.php
Expand Up @@ -85,7 +85,7 @@ function llxFooter() { }
$resql=$db->query($sql);

//Update status communication of contact prospect
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET fk_stcomm=-1 WHERE rowid IN (SELECT fk_soc FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.tag = '".$db->escape($tag)."' AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
$sql = "UPDATE ".MAIN_DB_PREFIX."socpeople SET no_email=1 WHERE rowid IN (SELECT rowid FROM ".MAIN_DB_PREFIX."socpeople AS sc INNER JOIN ".MAIN_DB_PREFIX."mailing_cibles AS mc ON mc.tag = '".$db->escape($tag)."' AND mc.source_type = 'contact' AND mc.source_id = sc.rowid)";
dol_syslog("public/emailing/mailing-unsubscribe.php : Mail unsubcribe contact : ".$sql, LOG_DEBUG);

$resql=$db->query($sql);
Expand Down

0 comments on commit 22447cd

Please sign in to comment.