From 0bf588962b89f91021d1cff771156c91368a45ef Mon Sep 17 00:00:00 2001 From: atm-florian Date: Thu, 19 May 2022 09:45:37 +0200 Subject: [PATCH] FIX 15.0: modules cannot declare more than 1 cron job using the same method with different parameters --- htdocs/core/modules/DolibarrModules.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index dcb59df7ebb..83c79da87f4 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -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();