FIX 15.0: modules cannot declare more than 1 cron job using the same method with different parameters

This commit is contained in:
atm-florian 2022-05-19 09:45:37 +02:00
parent 900be0a899
commit 0bf588962b

View File

@ -1430,6 +1430,9 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
if ($command) {
$sql .= " AND command = '".$this->db->escape($command)."'";
}
if ($parameters) {
$sql .= " AND params = '".$this->db->escape($parameters)."'";
}
$sql .= " AND entity = ".((int) $entity); // Must be exact entity
$now = dol_now();