2
0
forked from Wavyzz/dolibarr

NEW: Enhancement of module 'Notification by Email'. Show nb of

notifications set. Can set several emails. Can set a threshold on
amount for notifications. Add notification on supplier order validation.
This commit is contained in:
Laurent Destailleur
2015-03-18 21:44:57 +01:00
parent b0b88be81f
commit 6ceda02eaa
23 changed files with 541 additions and 233 deletions

View File

@@ -386,6 +386,12 @@ function dolibarr_del_const($db, $name, $entity=1)
{
global $conf;
if (empty($name))
{
dol_print_error('','Error call dolibar_del_const with parameter name empty');
return -1;
}
$sql = "DELETE FROM ".MAIN_DB_PREFIX."const";
$sql.= " WHERE (".$db->decrypt('name')." = '".$db->escape($name)."'";
if (is_numeric($name)) $sql.= " OR rowid = '".$db->escape($name)."'";
@@ -438,7 +444,7 @@ function dolibarr_get_const($db, $name, $entity=1)
/**
* Insert a parameter (key,value) into database.
* Insert a parameter (key,value) into database (delete old key then insert it again).
*
* @param DoliDB $db Database handler
* @param string $name Name of constant