Rend le module generique pour utilisation ulterieure

This commit is contained in:
Rodolphe Quiedeville 2007-10-08 11:14:05 +00:00
parent 9e1b0ab833
commit 71eeb80897

View File

@ -60,14 +60,14 @@ class WorkflowTelephonie {
return $res;
}
function Notify($statut_id, $numero)
function Notify($module, $statut_id, $numero)
{
dolibarr_syslog("WorkflowTelephonie::Notify statut_id=$statut_id",LOG_DEBUG);
$sql = "SELECT u.rowid";
$sql .= " FROM ".MAIN_DB_PREFIX."user as u, ".MAIN_DB_PREFIX."telephonie_workflow as w";
$sql .= " WHERE u.rowid = w.fk_user AND w.fk_statut = '".$statut_id."' AND module='xdsl';";
$sql .= " WHERE u.rowid = w.fk_user AND w.fk_statut = '".$statut_id."' AND module='".$module."';";
if ( $resql = $this->db->query( $sql) )
{