From e6b4796b72156ec41079f8055a089d72c614faeb Mon Sep 17 00:00:00 2001 From: Anthony Berton Date: Wed, 9 Apr 2025 12:19:19 +0200 Subject: [PATCH 1/2] Update editor --- core/modules/modCDav.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/modules/modCDav.class.php b/core/modules/modCDav.class.php index 6c814e7..233a12d 100644 --- a/core/modules/modCDav.class.php +++ b/core/modules/modCDav.class.php @@ -57,6 +57,8 @@ function __construct($db) $this->name = preg_replace('/^mod/i','',get_class($this)); // Module description, used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) $this->description = "Allows caldav and carddav clients to sync with Dolibarr."; + $this->editor_name = 'BEFOX SARL'; + $this->editor_url = 'https://befox.fr/'; // Possible values for version are: 'development', 'experimental', 'dolibarr' or version $this->version = '3.1.1'; // Key used in llx_const table to save module status enabled/disabled (where CDAV is value of property name of module in uppercase) From e166b22c3cfe30fcc24c5644f688b226e95e0e52 Mon Sep 17 00:00:00 2001 From: Marc de Lima Lucio <68746600+marc-dll@users.noreply.github.com> Date: Wed, 1 Oct 2025 15:55:32 +0200 Subject: [PATCH 2/2] FIX: PHP warning --- class/actions_cdav.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/actions_cdav.class.php b/class/actions_cdav.class.php index b7d30cc..356071b 100644 --- a/class/actions_cdav.class.php +++ b/class/actions_cdav.class.php @@ -382,7 +382,7 @@ public function formObjectOptions($parameters, &$object, &$action) // echo "formObjectOptions action: "; // print_r($action); - if ($parameters['currentcontext'] == 'projecttaskscard' && $parameters['id'] > 0) { + if ($parameters['currentcontext'] == 'projecttaskscard' && ! empty($parameters['id'])) { $sql = 'SELECT pt.rowid, us.color, us.login, us.firstname, us.lastname FROM ' . MAIN_DB_PREFIX . 'projet_task AS pt LEFT JOIN ' . MAIN_DB_PREFIX . 'element_contact as ec ON (ec.element_id=pt.rowid)