Merge pull request #27101 from cfoellmann/19/PR/blockedlog-project
NEW add data type 'project' to blockedlog
This commit is contained in:
commit
41ccd47cbe
1 changed files with 9 additions and 0 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue