|
@@ -320,6 +320,15 @@ class BlockedLog
|
|
|
} else {
|
|
|
$this->error++;
|
|
|
}
|
|
|
+ } elseif ($this->element === 'project') {
|
|
|
+ require_once DOL_DOCUMENT_ROOT.'/projet/class/project.class.php';
|
|
|
+
|
|
|
+ $object = new Project($this->db);
|
|
|
+ if ($object->fetch($this->fk_object) > 0) {
|
|
|
+ return $object->getNomUrl(1);
|
|
|
+ } else {
|
|
|
+ $this->error++;
|
|
|
+ }
|
|
|
} elseif ($this->action == 'MODULE_SET') {
|
|
|
return '<i class="opacitymedium">'.$langs->trans("BlockedLogEnabled").'</i>';
|
|
|
} elseif ($this->action == 'MODULE_RESET') {
|