diff --git a/src/controllers/WebhooksController.php b/src/controllers/WebhooksController.php index b1c79d6..92848f1 100644 --- a/src/controllers/WebhooksController.php +++ b/src/controllers/WebhooksController.php @@ -112,11 +112,12 @@ public function actionEdit(): YiiResponse $webhookSigningSecret = $webhookRecord->webhookSigningSecret; if (!empty($webhookId)) { + $parsedWebhookId = App::parseEnv($webhookRecord->webhookId); try { - $response = $this->getWebhookInfo($plugin, $webhookId); + $response = $this->getWebhookInfo($plugin, $parsedWebhookId); $webhookInfo = $response->toArray(); } catch (\Exception $e) { - Craft::error("Couldn't retrieve webhook with ID $webhookId: " . $e->getMessage()); + Craft::error("Couldn't retrieve webhook with ID $parsedWebhookId: " . $e->getMessage()); $hasWebhook = false; } } else {