From 16bb994698ff87ea4861856489ccac623df4a249 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 2 Sep 2024 13:55:08 +0200 Subject: [PATCH] Debug v21 --- htdocs/core/modules/DolibarrModules.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index 3534ada375b..5a3e77f10d7 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -1635,6 +1635,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it $sql = "SELECT count(*) as nb FROM " . MAIN_DB_PREFIX . "cronjob"; //$sql .= " WHERE module_name = '" . $this->db->escape(empty($this->rights_class) ? strtolower($this->name) : $this->rights_class) . "'"; $sql .= " WHERE label = '".$this->db->escape($label)."'"; + /* unique key is on label,entity so no need for this test if ($classesname) { $sql .= " AND classesname = '" . $this->db->escape($classesname) . "'"; } @@ -1650,6 +1651,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it if ($params) { $sql .= " AND params = '" . $this->db->escape($params) . "'"; } + */ $sql .= " AND entity = " . ((int) $entity); // Must be exact entity $result = $this->db->query($sql);