Skip to content

Commit

Permalink
Evarisk#3826 [Document] fix: fetch and sort riskassessment in project…
Browse files Browse the repository at this point in the history
…doc orque
  • Loading branch information
evarisk-micka committed Apr 17, 2024
1 parent 761018d commit c422f60
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ public function write_file( SaturneDocuments $objectDocument, Translate $outputL
// Sort the info by descending order of cotation
$objectDoc = array();
for ($i = 0; $i < $nblines; $i++) {
$risk->fetch($object->lines[$i]->options_fk_risk);
$object->lines[$i]->fetch_optionals();
$risk->fetch($object->lines[$i]->array_options['options_fk_risk']);
$lastEvaluation = $riskassessment->fetchFromParent($risk->id, 1);
if ($lastEvaluation > 0 && !empty($lastEvaluation) && is_array($lastEvaluation)) {
$lastEvaluation = array_shift($lastEvaluation);
Expand Down

0 comments on commit c422f60

Please sign in to comment.