Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FIX TICKET 0007902: (github code) API-XMLRPC - getRequirements raise …
…PHP Fatal error

fix issue when providing test plan (and platform) to getRequirements
  • Loading branch information
atisne committed Mar 29, 2017
1 parent 3e79efa commit 75e33e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/api/xmlrpc/v1/xmlrpc.class.php
Expand Up @@ -8017,14 +8017,14 @@ public function getRequirements($args)

// check if a context (test plan/platform) is provided
if ($this->_isParamPresent(self::$testPlanIDParamName)) {
$status_ok = checkTestPlanID($msg_prefix);
$status_ok = $this->checkTestPlanID($msg_prefix);
$context['tplan_id'] = $this->args[self::$testPlanIDParamName];

if ( $status_ok ) {
if ($this->_isParamPresent(self::$platformIDParamName)) {
$status_ok = checkPlatformIdentity($this->args[self::$testPlanIDParamName],
$this->args[self::$platformIDParamName],
$msg_prefix);
$status_ok = $this->checkPlatformIdentity($this->args[self::$testPlanIDParamName],
null,
$msg_prefix);
$context['platform_id'] = $this->args[self::$platformIDParamName];
}
}
Expand Down

0 comments on commit 75e33e2

Please sign in to comment.