← All changes
|
includes/Core/Integration/WebHooks/WebHooksHandler.php
+9
-8
2.10.0
→
2.15.3
View file →
| @@ -90,12 +90,13 @@ | ||
| 90 | 90 | { |
| 91 | 91 | $details = is_string($integrationDetails->integration_details) ? json_decode($integrationDetails->integration_details) : $integrationDetails->integration_details; |
| 92 | 92 | $method = isset($details->method) ? $details->method : 'get'; |
| 93 | 93 | $data = isset($details->url) ? $this->urlParserWrapper($details->url) : false; |
| 94 | + | |
| 94 | 95 | if ($data) { |
| 95 | 96 | $url = $data['url']; |
| 96 | 97 | $params = $data['params']; |
| 97 | - $params = IntegrationHandler::replaceFieldWithValue($params, self::iterate($fieldValues)); | |
| 98 | + $params = IntegrationHandler::replaceFieldWithValue($params, $fieldValues); | |
| 98 | 99 | $params['entry_id'] = $entryID; |
| 99 | 100 | switch (strtoupper($method)) { |
| 100 | 101 | case 'GET': |
| 101 | 102 | $response = HttpHelper::get($url, $params); |
| @@ -110,11 +111,11 @@ | ||
| 110 | 111 | break; |
| 111 | 112 | } |
| 112 | 113 | |
| 113 | 114 | // if bitform pro is not active then return the response without response log |
| 114 | - if (!class_exists('BitCode\\BitFormPro\\Plugin')) { | |
| 115 | - return $response; | |
| 116 | - } | |
| 115 | + // if (!class_exists('BitCode\\BitFormPro\\Plugin')) { | |
| 116 | + // return $response; | |
| 117 | + // } | |
| 117 | 118 | |
| 118 | 119 | // if bitform pro is active then return the response with response log |
| 119 | 120 | if (is_wp_error($response)) { |
| 120 | 121 | $this->_logResponse->apiResponse( |
| @@ -134,11 +135,11 @@ | ||
| 134 | 135 | ); |
| 135 | 136 | } |
| 136 | 137 | return $response; |
| 137 | 138 | } else { |
| 138 | - if (!class_exists('BitCode\\BitFormPro\\Plugin')) { | |
| 139 | - return false; | |
| 140 | - } | |
| 139 | + // if (!class_exists('BitCode\\BitFormPro\\Plugin')) { | |
| 140 | + // return false; | |
| 141 | + // } | |
| 141 | 142 | |
| 142 | 143 | $this->_logResponse->apiResponse( |
| 143 | 144 | $logID, |
| 144 | 145 | $this->webhookID, |
| @@ -198,5 +199,5 @@ | ||
| 198 | 199 | } |
| 199 | 200 | } |
| 200 | 201 | return $ar; |
| 201 | 202 | } |
| 202 | -} | |
| 203 | +} | |