Skip to content

Commit

Permalink
Evarisk#3983 [Dashboard] fix: reorder graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-kilyan committed Oct 4, 2024
1 parent 2856367 commit 7b280c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion class/digiriskdolibarrdashboard.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public function load_dashboard(array $moreParams = []): array
{
$dashboardDatas = [
['type' => 'RiskAssessmentDocument', 'classPath' => '/digiriskdolibarrdocuments/riskassessmentdocument.class.php'],
['type' => 'Risk', 'classPath' => '/riskanalysis/risk.class.php'],
['type' => 'Accident', 'classPath' => '/accident.class.php'],
['type' => 'Evaluator', 'classPath' => '/evaluator.class.php'],
['type' => 'DigiriskResources', 'classPath' => '/digiriskresources.class.php'],
['type' => 'DigiriskElement', 'classPath' => '/digiriskelement.class.php'],
['type' => 'SaturneTask', 'classPath' => '/../../saturne/class/task/saturnetask.class.php'],
['type' => 'Risk', 'classPath' => '/riskanalysis/risk.class.php'],
['type' => 'TicketDashboard', 'classPath' => '/ticketdashboard.class.php']
];
foreach ($dashboardDatas as $dashboardData) {
Expand Down
2 changes: 1 addition & 1 deletion class/riskanalysis/risk.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ public function load_dashboard(): array
$getRisksByDangerCategories = $this->getRisksByDangerCategories($dangerCategories, $riskByDangerCategoriesAndRiskAssessments);
$getRiskListsByDangerCategories = $this->getRiskListsByDangerCategories($dangerCategories, $riskByDangerCategoriesAndRiskAssessments, $filter, 'risk');

$array['graphs'] = [$getRisksByCotation, $getRisksByDangerCategoriesAndCriticality, $getRisksByDangerCategories];
$array['graphs'] = [$getRisksByDangerCategoriesAndCriticality, $getRisksByDangerCategories, $getRisksByCotation];
$array['lists'] = [$getRiskListsByDangerCategories];

return $array;
Expand Down

0 comments on commit 7b280c9

Please sign in to comment.