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) diff --git a/core/modules/modCDav.class.php b/core/modules/modCDav.class.php index e5aab0a..1d23ca4 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.3'; // Key used in llx_const table to save module status enabled/disabled (where CDAV is value of property name of module in uppercase)