diff --git a/ChangeLog b/ChangeLog index 256b92bb912..dae48dadc43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ Fix: [ bug #1357 ] Invoice creator state not printed in generated invoice docume Fix: Suppliers invoice mask fails using {tttt} in numbering. Fix: pdf template name for typhon was not correctly et when enabling module. Fix: Navigation on notes for shipments was not working. +Fix: [ bug #1353 ] Email notifications, wrong URL. ***** ChangeLog for 3.5.2 compared to 3.5.1 ***** Fix: Can't add user for a task. diff --git a/htdocs/core/class/notify.class.php b/htdocs/core/class/notify.class.php index abf124b02f3..3b80199f914 100644 --- a/htdocs/core/class/notify.class.php +++ b/htdocs/core/class/notify.class.php @@ -133,7 +133,7 @@ class Notify $langs->load("other"); - dol_syslog("Notify::send action=$action, socid=$socid, texte=$texte, objet_type=$objet_type, objet_id=$objet_id, file=$file"); + dol_syslog(get_class($this)."::send action=".$action.", socid=".$socid.", texte=".$texte.", objet_type=".$objet_type.", objet_id=".$objet_id.", file=".$file); $sql = "SELECT s.nom, c.email, c.rowid as cid, c.lastname, c.firstname,"; $sql.= " a.rowid as adid, a.label, a.code, n.rowid"; @@ -185,10 +185,10 @@ class Notify $link='/compta/facture.php?facid='.$objet_id; break; case 'order': - $link='/commande/fiche.php?facid='.$objet_id; + $link='/commande/fiche.php?id='.$objet_id; break; case 'order_supplier': - $link='/fourn/commande/fiche.php?facid='.$objet_id; + $link='/fourn/commande/fiche.php?id='.$objet_id; break; } // Define $urlwithroot