Skip to content

Commit 1a64846

Browse files
committed
Contribution - Fix getTestCaseAssignedTester and manageTestCaseExecutionTask #349
1 parent b2aa3f2 commit 1a64846

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

lib/api/xmlrpc/v1/xmlrpc.class.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7361,9 +7361,8 @@ public function getTestCaseAssignedTester($args) {
73617361
// more than 1 item => we have platforms
73627362
// access key => tcversion_id, tplan_id, platform_id
73637363
$link = current( $info );
7364-
$link = $link[$tplan_id];
7365-
$hits = count( $link );
7366-
$check_platform =(count( $hits ) > 1) || ! isset( $link[0] );
7364+
$link = $link[$tplan_id]; // Inside test plan, is indexed by platform
7365+
$check_platform =(count( $link ) > 1) || ! isset( $link[0] );
73677366
}
73687367

73697368
if($status_ok && $check_platform) {
@@ -7629,9 +7628,8 @@ private function manageTestCaseExecutionTask($args, $msg_prefix) {
76297628
// access key => tcversion_id, tplan_id, platform_id
76307629
$link = current( $info );
76317630
$link = $link[$tplan_id]; // Inside test plan, is indexed by platform
7632-
$hits = count( $link );
76337631
$platform_id = 0;
7634-
$check_platform =(count( $hits ) > 1) || ! isset( $link[0] );
7632+
$check_platform =(count( $link ) > 1) || ! isset( $link[0] );
76357633
}
76367634

76377635
if($status_ok && $check_platform) {

0 commit comments

Comments
 (0)