diff --git a/BugzillaQuery.class.php b/BugzillaQuery.class.php index 4a749fa..d300d07 100644 --- a/BugzillaQuery.class.php +++ b/BugzillaQuery.class.php @@ -284,25 +284,12 @@ public function _fetch_by_options() { $request = new HTTP_Request2($this->url, HTTP_Request2::METHOD_POST, array('follow_redirects' => TRUE, - // TODO: Not sure if I should do this 'ssl_verify_peer' => FALSE)); $request->setHeader('Accept', 'text/xml'); $request->setHeader('Content-Type', 'text/xml;charset=utf-8'); $request->setBody($xml); - // Save the real options - $saved_options = $this->options; - - // Add any synthetic fields to the options - if( !empty($this->synthetic_fields) ) { - $this->options['include_fields'] = - @array_merge((array)$this->options['include_fields'], - $this->synthetic_fields); - } - - $this->options = $saved_options; - try { $response = $request->send(); @@ -331,7 +318,6 @@ public function _fetch_by_options() { return; } - // Check for REST API errors if( isset($this->data['error']) && !empty($this->data['error']) ) { $this->error = "Bugzilla API returned an error: " . $this->data['message'];