Skip to content

Commit 810e3b4

Browse files
committed
FIX #0008999: Inlineimages not shown in steps
1 parent 204163d commit 810e3b4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/functions/testcase.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5503,12 +5503,12 @@ function get_steps($tcversion_id,$step_number=0,$options=null) {
55035503
}
55045504

55055505
if(!is_null($result) && $my['options']['renderImageInline']) {
5506-
// for attachments we need main entity => Test case
5507-
$tcvnode = $this->tree_manager->get_node_hierarchy_info($tcversion_id);
5506+
// for attachments we need the Test Case Version ID
5507+
// (time ago we used the Test Case ID)
55085508
$k2l = count($result);
55095509
$gaga = array('actions','expected_results');
55105510
for($idx=0; $idx < $k2l; $idx++) {
5511-
$this->renderImageAttachments($tcvnode['parent_id'],$result[$idx],$gaga);
5511+
$this->renderImageAttachments($tcversion_id,$result[$idx],$gaga);
55125512
}
55135513
}
55145514

0 commit comments

Comments
 (0)