-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3898 from Evarisk/develop
10.1.0
- Loading branch information
Showing
42 changed files
with
1,628 additions
and
1,629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
/* Copyright (C) 2021-2023 EVARISK <[email protected]> | ||
/* Copyright (C) 2021-2024 EVARISK <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -32,12 +32,12 @@ | |
class DigiriskDocuments extends SaturneDocuments | ||
{ | ||
/** | ||
* @var string Module name. | ||
* @var string Module name | ||
*/ | ||
public $module = 'digiriskdolibarr'; | ||
|
||
/** | ||
* @var string Name of table without prefix where object is stored. This is also the key used for extrafields management. | ||
* @var string Name of table without prefix where object is stored. This is also the key used for extrafields management | ||
*/ | ||
public $table_element = 'saturne_object_documents'; | ||
|
||
|
@@ -165,16 +165,15 @@ public function fillRiskData(Odf $odfHandler, $object, Translate $outputLangs, $ | |
{ | ||
global $action, $conf, $hookmanager, $langs; | ||
|
||
$usertmp = new User($this->db); | ||
$project = new Project($this->db); | ||
$DUProject = new Project($this->db); | ||
$risk = new Risk($this->db); | ||
$usertmp = new User($this->db); | ||
$project = new Project($this->db); | ||
$DUProject = new Project($this->db); | ||
$risk = new Risk($this->db); | ||
$digiriskelementobject = new DigiriskElement($this->db); | ||
|
||
$DUProject->fetch($conf->global->DIGIRISKDOLIBARR_DU_PROJECT); | ||
|
||
$activeDigiriskElements = $digiriskelementobject->getActiveDigiriskElements($allEntities ? 1 : 0); | ||
$tasksSortedByRisk = $risk->getTasksWithFkRisk(); | ||
$tasksSortedByRisk = $risk->getTasksWithFkRisk(); | ||
|
||
for ($i = 4; $i >= 1; $i--) { | ||
$foundTagForLines = 1; | ||
|
@@ -462,8 +461,8 @@ public function getTriggerDescription(SaturneObject $object): string | |
|
||
$ret = parent::getTriggerDescription($object); | ||
|
||
$ret .= $langs->transnoentities('ElementType') . ' : ' . $object->parent_type . '</br>'; | ||
$ret .= $langs->transnoentities('ParentElement') . ' : ' . $parentElement->ref . ' ' . $parentElement->label . '</br>'; | ||
$ret .= $langs->transnoentities('ElementType') . ' : ' . $object->parent_type . '<br>'; | ||
$ret .= $langs->transnoentities('ParentElement') . ' : ' . $parentElement->ref . ' ' . $parentElement->label . '<br>'; | ||
$ret .= $langs->transnoentities('LastMainDoc') . ' : ' . $object->last_main_doc . '<br>'; | ||
|
||
return $ret; | ||
|
Oops, something went wrong.