-
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 #3886 from evarisk-charles/fix_risk/risksign_wu_do…
…cument #3560 [Risk/Risksign] fix: shared risks/sign in WU document
- Loading branch information
Showing
5 changed files
with
50 additions
and
46 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
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; | ||
|
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