2
0
forked from Wavyzz/dolibarr

New: unified action and event with trigger name

Fix: remove entity and active fields
Fix: reorder records
This commit is contained in:
Regis Houssin
2011-06-05 09:08:11 +00:00
parent ea51f8df00
commit 1c3115a8d9
7 changed files with 60 additions and 65 deletions

View File

@@ -41,8 +41,7 @@ $action=$_POST["action"];
// TODO add function
$sql = "SELECT a.rowid, a.code, a.label, a.elementtype";
$sql.= " FROM ".MAIN_DB_PREFIX."c_action_trigger as a";
$sql.= " WHERE a.entity = ".$conf->entity;
$sql.= " AND a.active = 1";
$sql.= " ORDER BY a.rang ASC";
$resql=$db->query($sql);
if ($resql)

View File

@@ -171,8 +171,7 @@ if ($conf->global->MAIN_MODULE_NOTIFICATION)
$sql = "SELECT rowid, code, label";
$sql.= " FROM ".MAIN_DB_PREFIX."c_action_trigger";
$sql.= " WHERE elementtype = 'withdraw'";
$sql.= " AND entity = ".$conf->entity;
$sql.= " AND active = 1";
$sql.= " ORDER BY rang ASC";
$resql = $db->query($sql);
if ($resql)